Advertisement
Guest User

Untitled

a guest
Feb 18th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.63 KB | None | 0 0
  1. import * as React from "react";
  2. import props from "./props";
  3. import example from "./examples";
  4. import Prop from "../../../../../.storybook/components/Prop/Prop";
  5. import Example from "../../../../../.storybook/components/Example/Example";
  6. import Sandbox from "../../../../../.storybook/components/Sandbox/Sandbox";
  7. /* tslint:disable:max-line-length */
  8.  
  9. class ${NAME} extends React.Component<any, any> {
  10. myProps = props.map((x) => <Prop key={x.prop} {...x}/>);
  11.  
  12. render() {
  13. return (
  14. <div className="story">
  15. <header className="intro">
  16. <h1 className="component-story__intro-heading display-4">{"Name of Component"}</h1>
  17. <p className="component-story__intro-description">{"Description of Component"}</p>
  18. </header>
  19.  
  20. <div className="ruler"/>
  21.  
  22. <main className="row">
  23. <div className="col-md-12">
  24. <h2>Examples</h2>
  25. <Example
  26. title="Basic Usage"
  27. code={example}
  28. >
  29. <div style={{width: "500px"}}>
  30. {"example goes here"}
  31. </div>
  32. </Example>
  33. <div className="ruler"/>
  34. <h2 className="section-heading">Input Props</h2>
  35. {"props go here"}
  36.  
  37. </div>
  38. </main>
  39.  
  40. <Sandbox>
  41. <div style={{width: "1000px"}}>
  42. {"sand box item"}
  43. </div>
  44. </Sandbox>
  45. </div>
  46. );
  47. }
  48. }
  49.  
  50. export default ${NAME};
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58. import * as React from "react";
  59.  
  60. interface I${NAME}Props {
  61. }
  62.  
  63. class ${NAME} extends React.Component<I${NAME}Props, {}> {
  64. constructor(props: I${NAME}Props) {
  65. super(props);
  66. this.state = {};
  67. }
  68.  
  69. render() {
  70. return (
  71. <div/>
  72. );
  73. }
  74. }
  75.  
  76. export default ${NAME};
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement