about summary refs log tree commit diff
path: root/storybook/stories
diff options
context:
space:
mode:
authorKai Schaper <303@posteo.de>2016-10-11 04:07:32 +0200
committerKai Schaper <303@posteo.de>2016-10-11 20:19:03 +0200
commit4eeb7947bd9209ec137a032cf66c47041c27c07e (patch)
treef7f50ebd69898b4f532849f4a08e822d5c627db7 /storybook/stories
parent71e7537330596adbaa5521c0515e03f701ec7ef9 (diff)
add stylesheet; add story for Button component
Diffstat (limited to 'storybook/stories')
-rw-r--r--storybook/stories/button.story.jsx15
1 files changed, 15 insertions, 0 deletions
diff --git a/storybook/stories/button.story.jsx b/storybook/stories/button.story.jsx
new file mode 100644
index 000000000..fe6d57ad0
--- /dev/null
+++ b/storybook/stories/button.story.jsx
@@ -0,0 +1,15 @@
+import Button from '../../app/assets/javascripts/components/components/button.jsx'
+
+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')} />
+  ));