NumberInput
The NumberInput component is used for numeric input with validation. It extends the Input component.
Playground
Props
Props
The NumberInput accepts all props from the Input component, plus:
| Prop | Type | Default | Description |
|---|---|---|---|
decimals | number | 0 | Number of decimal places allowed. |
max | number | - | Maximum value. |
min | number | - | Minimum value. |
step | number | 1 | Step increment. |
See also
Last updated on