You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
423 B
24 lines
423 B
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"
|
|
/>
|
|
)
|
|
|