1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Add TextField component to storybook

This commit is contained in:
Alexander Tseung 2018-05-10 19:23:44 -07:00
parent 2381c0e0f4
commit 0301b33a48
3 changed files with 25 additions and 2 deletions

View File

@ -128,7 +128,6 @@ class UnlockPage extends Component {
onChange={event => this.handleInputChange(event)}
error={error}
autoFocus
margin="normal"
autoComplete="current-password"
fullWidth
/>

View File

@ -29,7 +29,7 @@
&__form {
width: 100%;
margin-top: 40px;
margin: 56px 0 8px;
}
&__links {

View File

@ -0,0 +1,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"
/>
)