aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/text-field
diff options
context:
space:
mode:
authorAlexander Tseung <alextsg@gmail.com>2018-05-11 10:23:44 +0800
committerAlexander Tseung <alextsg@gmail.com>2018-05-12 03:49:17 +0800
commit0301b33a48fea3c345e2e49fa53693856770a254 (patch)
tree8df5a7134f0cd0cc1beeed287b182b00354c188a /ui/app/components/text-field
parent2381c0e0f461304265279155176fa655e2eb97b4 (diff)
downloadtangerine-wallet-browser-0301b33a48fea3c345e2e49fa53693856770a254.tar.gz
tangerine-wallet-browser-0301b33a48fea3c345e2e49fa53693856770a254.tar.zst
tangerine-wallet-browser-0301b33a48fea3c345e2e49fa53693856770a254.zip
Add TextField component to storybook
Diffstat (limited to 'ui/app/components/text-field')
-rw-r--r--ui/app/components/text-field/text-field.stories.js24
1 files changed, 24 insertions, 0 deletions
diff --git a/ui/app/components/text-field/text-field.stories.js b/ui/app/components/text-field/text-field.stories.js
new file mode 100644
index 000000000..ee3e5faaf
--- /dev/null
+++ b/ui/app/components/text-field/text-field.stories.js
@@ -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"
+ />
+ )