NumberInput
Beta notice: This page is being built.Edit on GitHub(opens in new tab)
Edits a constrained number without wheel editing or custom value formatting.
longlink docs component "NumberInput"
Example
Properties
| NumberInput - Properties |
|---|
label Label text for the input (always rendered for accessibility).string |
description Description text displayed between the label and input.string |
name Includes the themed control's value under this form submission name.string |
required Requires a value before native form submission.boolean |
disabled Prevents interaction and excludes the field from submission.boolean |
value Current value of the input.number | null |
defaultValue Initial value.number |
min Minimum value allowed. A smaller entry commits at this value on blur or Enter.number | null |
max Maximum value allowed. A larger entry commits at this value on blur or Enter.number | null |
step Step increment for the input.number | null |
placeholder Placeholder text.string |
units Units text to display at the end of the input (e.g., "%" or "GB").string | null |
isIntegerOnly Only allow integer values (no floating point).boolean |
autoComplete HTML autocomplete attribute.string |
onChange Receives committed edits, step changes, or cleared values.(value: number | null) => void |