diff options
author | kumavis <aaron@kumavis.me> | 2018-05-17 02:57:07 +0800 |
---|---|---|
committer | kumavis <aaron@kumavis.me> | 2018-05-17 02:57:07 +0800 |
commit | c27d9162d7001fa2bd6cfb98dd110716951d2d1b (patch) | |
tree | 19f5d4780b3ee82c0e9c9fe2a9c2edad745dd084 /ui/app/components/button/button.stories.js | |
parent | a1d13d45cf7451162b071e5507f1e31b12574e6e (diff) | |
parent | 6e79225dbff512ab9bcae2731bcfc4ce33e98664 (diff) | |
download | tangerine-wallet-browser-c27d9162d7001fa2bd6cfb98dd110716951d2d1b.tar.gz tangerine-wallet-browser-c27d9162d7001fa2bd6cfb98dd110716951d2d1b.tar.zst tangerine-wallet-browser-c27d9162d7001fa2bd6cfb98dd110716951d2d1b.zip |
Merge branch 'develop' of github.com:MetaMask/metamask-extension into network-controller-remove-setNetworkEndpoints
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> + )) |