aboutsummaryrefslogtreecommitdiffstats
path: root/uidev
diff options
context:
space:
mode:
authorLibravatar Stefan Malzner <stefan@adlk.io>2019-03-19 15:54:09 +0100
committerLibravatar Stefan Malzner <stefan@adlk.io>2019-03-19 15:54:09 +0100
commit402955de230d3f7e62add781792e57adeeaa9cf3 (patch)
tree71ddb9dae501f56e8477924c4bcda7c54c745504 /uidev
parent5.0.1-beta.1 (diff)
downloadferdium-app-402955de230d3f7e62add781792e57adeeaa9cf3.tar.gz
ferdium-app-402955de230d3f7e62add781792e57adeeaa9cf3.tar.zst
ferdium-app-402955de230d3f7e62add781792e57adeeaa9cf3.zip
Add support for input type=number
Diffstat (limited to 'uidev')
-rw-r--r--uidev/src/stories/input.stories.tsx8
1 files changed, 8 insertions, 0 deletions
diff --git a/uidev/src/stories/input.stories.tsx b/uidev/src/stories/input.stories.tsx
index c522a10c7..af5e791d0 100644
--- a/uidev/src/stories/input.stories.tsx
+++ b/uidev/src/stories/input.stories.tsx
@@ -66,6 +66,14 @@ storiesOf('Input')
66 value="faulty input" 66 value="faulty input"
67 error="This is a generic error message." 67 error="This is a generic error message."
68 /> 68 />
69 ))
70 .add('Type number with min & max', () => (
71 <Input
72 {...defaultProps()}
73 type="number"
74 min={1}
75 max={10}
76 />
69 )); 77 ));
70 78
71storiesOf('Password') 79storiesOf('Password')