aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/text-field/text-field.stories.js
blob: ee3e5faaf331d0e8ad5f959ce3f38f43c5e824b6 (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
import React from 'react'
import { storiesOf } from '@storybook/react'
import TextField from './'

storiesOf('TextField', module)
  .add('text', () =>
    <TextField
      label="Text"
      type="text"
    />
  )
  .add('password', () =>
    <TextField
      label="Password"
      type="password"
    />
  )
  .add('error', () =>
    <TextField
      type="text"
      label="Name"
      error="Invalid value"
    />
  )