about summary refs log tree commit diff
path: root/storybook/stories/button.story.js
blob: 3fd45cb828b8a7d3110f44f5dc00e5b918fcc777 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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')} />
  ));