NumberInput
Edit decimals or integers with locale-aware grouping and configurable numeric bounds.
Basic usage
Pass canonical values as strings. Here, maximumFractionDigits={0} accepts integers. A number below min remains editable and fails validation.
Enter a whole number greater than or equal to zero.
API
Key props and defaults.
| Prop | Values and behavior | Default |
|---|---|---|
locale | string | en-US |
useGrouping | boolean | true |
min / max | decimal string | — |
maximumFractionDigits | number | max(6, minimumFractionDigits) |
allowNegative | boolean | true |
submitValue | formatted | raw | formatted |