Created
November 1, 2017 23:45
-
-
Save viniciusdacal/0847047b51f38ed50e439ad34a3095b0 to your computer and use it in GitHub Desktop.
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
import React from 'react'; | |
import { storiesOf } from '@storybook/react'; | |
import { action } from '@storybook/addon-actions'; | |
import Button from '../Button/Button'; | |
storiesOf('Button', module) | |
.add('default', () => ( | |
<Button onClick={action('clicked')}>Hello Button</Button> | |
)) | |
.add('disabled', () => ( | |
<Button onClick={action('clicked')} disabled>Hello Button</Button> | |
)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment