diff options
author | 2019-03-19 15:54:09 +0100 | |
---|---|---|
committer | 2019-03-19 15:54:09 +0100 | |
commit | 402955de230d3f7e62add781792e57adeeaa9cf3 (patch) | |
tree | 71ddb9dae501f56e8477924c4bcda7c54c745504 /uidev/src | |
parent | 5.0.1-beta.1 (diff) | |
download | ferdium-app-402955de230d3f7e62add781792e57adeeaa9cf3.tar.gz ferdium-app-402955de230d3f7e62add781792e57adeeaa9cf3.tar.zst ferdium-app-402955de230d3f7e62add781792e57adeeaa9cf3.zip |
Add support for input type=number
Diffstat (limited to 'uidev/src')
-rw-r--r-- | uidev/src/stories/input.stories.tsx | 8 |
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 | ||
71 | storiesOf('Password') | 79 | storiesOf('Password') |