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:
parent
2381c0e0f4
commit
0301b33a48
@ -128,7 +128,6 @@ class UnlockPage extends Component {
|
||||
onChange={event => this.handleInputChange(event)}
|
||||
error={error}
|
||||
autoFocus
|
||||
margin="normal"
|
||||
autoComplete="current-password"
|
||||
fullWidth
|
||||
/>
|
||||
|
@ -29,7 +29,7 @@
|
||||
|
||||
&__form {
|
||||
width: 100%;
|
||||
margin-top: 40px;
|
||||
margin: 56px 0 8px;
|
||||
}
|
||||
|
||||
&__links {
|
||||
|
24
ui/app/components/text-field/text-field.stories.js
Normal file
24
ui/app/components/text-field/text-field.stories.js
Normal 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"
|
||||
/>
|
||||
)
|
Loading…
Reference in New Issue
Block a user