about summary refs log tree commit diff
path: root/storybook/stories/button.story.js
blob: 628deed0a423a9406cdcc1e0da4d80158939dac3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import React from 'react';
import { storiesOf } from '@storybook/react';
import { action } from '@storybook/addon-actions';
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')} />
  ));