Created
November 20, 2018 00:33
-
-
Save ReidWilliams/4a915b05df002c229d232c210d6c4ee9 to your computer and use it in GitHub Desktop.
Storybook story template
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Dependencies | |
import React from 'react' | |
import { storiesOf } from '@storybook/react' | |
import centered from '@storybook/addon-centered' | |
import { action } from '@storybook/addon-actions' | |
// Local Dependencies | |
import { ComponentDecorator } from 'stories/decorators' | |
import MyComponent from './index' | |
storiesOf('Components/MyComponent', module) | |
.addDecorator(centered) | |
.addDecorator(ComponentDecorator) | |
.add('default', () => ( | |
<MyComponent /> | |
)) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment