about summary refs log tree commit diff
path: root/storybook/stories/button.story.js
diff options
context:
space:
mode:
Diffstat (limited to 'storybook/stories/button.story.js')
-rw-r--r--storybook/stories/button.story.js17
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')} />
+  ));