diff options
author | Yamagishi Kazutoshi <ykzts@desire.sh> | 2017-05-13 22:55:56 +0900 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-05-13 15:55:56 +0200 |
commit | 1027556614febb096f2186d3c678116b415c0b9b (patch) | |
tree | e8a335e835df865e022f6f4640d6982df51a944d /storybook/stories/button.story.js | |
parent | 3dcb5fa28f13f597d49b5b442f61d12bc2be6152 (diff) |
Fix broken storybook (#3030)
Diffstat (limited to 'storybook/stories/button.story.js')
-rw-r--r-- | storybook/stories/button.story.js | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/storybook/stories/button.story.js b/storybook/stories/button.story.js new file mode 100644 index 000000000..3fd45cb82 --- /dev/null +++ b/storybook/stories/button.story.js @@ -0,0 +1,17 @@ +import React from 'react'; +import { action, storiesOf } from '@kadira/storybook'; +import Button from 'mastodon/components/button'; + +storiesOf('Button', module) + .add('default state', () => ( + <Button text="submit" onClick={action('clicked')} /> + )) + .add('secondary', () => ( + <Button secondary text="submit" onClick={action('clicked')} /> + )) + .add('disabled', () => ( + <Button disabled text="submit" onClick={action('clicked')} /> + )) + .add('block', () => ( + <Button block text="submit" onClick={action('clicked')} /> + )); |