aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/button/button.stories.js
blob: d1e14e86953d3caf57d002b33c0ee28e78985a6c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import React from 'react'
import { storiesOf } from '@storybook/react'
import { action } from '@storybook/addon-actions'
import Button from './'
import { text } from '@storybook/addon-knobs/react'

storiesOf('Button', module)
  .add('primary', () =>
    <Button
      onClick={action('clicked')}
      type="primary"
    >
      {text('text', 'Click me')}
    </Button>
  )
  .add('secondary', () => (
    <Button
      onClick={action('clicked')}
      type="secondary"
    >
      {text('text', 'Click me')}
    </Button>
  ))
  .add('large primary', () => (
    <Button
      onClick={action('clicked')}
      type="primary"
      large
    >
      {text('text', 'Click me')}
    </Button>
  ))
  .add('large secondary', () => (
    <Button
      onClick={action('clicked')}
      type="secondary"
      large
    >
      {text('text', 'Click me')}
    </Button>
  ))