diff options
author | Dan <danjm.com@gmail.com> | 2018-05-14 21:30:50 +0800 |
---|---|---|
committer | Dan <danjm.com@gmail.com> | 2018-05-14 22:14:50 +0800 |
commit | 6bc8cc819a16118acc010d0efdec90afbda14590 (patch) | |
tree | 2d2c35604af2e6a44c5f3ecb5c901a52980710d8 /ui/app/components/button/button.stories.js | |
parent | 0739618a61cfc383498e466f4fdeb5a25324598f (diff) | |
download | tangerine-wallet-browser-6bc8cc819a16118acc010d0efdec90afbda14590.tar.gz tangerine-wallet-browser-6bc8cc819a16118acc010d0efdec90afbda14590.tar.zst tangerine-wallet-browser-6bc8cc819a16118acc010d0efdec90afbda14590.zip |
Merge branch 'develop' into i3725-refactor-send-component-
Diffstat (limited to 'ui/app/components/button/button.stories.js')
-rw-r--r-- | ui/app/components/button/button.stories.js | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/ui/app/components/button/button.stories.js b/ui/app/components/button/button.stories.js new file mode 100644 index 000000000..d1e14e869 --- /dev/null +++ b/ui/app/components/button/button.stories.js @@ -0,0 +1,41 @@ +import React from 'react' +import { storiesOf } from '@storybook/react' +import { action } from '@storybook/addon-actions' +import Button from './' +import { text } from '@storybook/addon-knobs/react' + +storiesOf('Button', module) + .add('primary', () => + <Button + onClick={action('clicked')} + type="primary" + > + {text('text', 'Click me')} + </Button> + ) + .add('secondary', () => ( + <Button + onClick={action('clicked')} + type="secondary" + > + {text('text', 'Click me')} + </Button> + )) + .add('large primary', () => ( + <Button + onClick={action('clicked')} + type="primary" + large + > + {text('text', 'Click me')} + </Button> + )) + .add('large secondary', () => ( + <Button + onClick={action('clicked')} + type="secondary" + large + > + {text('text', 'Click me')} + </Button> + )) |