mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-14 18:01:06 +00:00
fix(number-input): support floating point values (#1555)
Fixes #233, fixes #486, fixes #1554
This commit is contained in:
parent
e7fe8ca85b
commit
e6f5766e46
3 changed files with 35 additions and 10 deletions
|
@ -23,6 +23,10 @@ See [#no-value](#no-value) to allow for an empty value.
|
|||
|
||||
<NumberInput min="{4}" max="{20}" value="{4}" invalidText="Number must be between 4 and 20." helperText="Clusters provisioned in your region" label="Clusters (4 min, 20 max)" />
|
||||
|
||||
## With step value
|
||||
|
||||
<NumberInput value="{1}" helperText="Step of 0.1" step={0.1} label="Clusters" />
|
||||
|
||||
## No value
|
||||
|
||||
Set `allowEmpty` to `true` to allow for no value.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue