Number Input
Numeric stepper with clamp, step, and keyboard control.
a11yform
Customize
Default value2
Min0
Max10
Step1
Props
| Prop | Type | Default | Description |
|---|---|---|---|
value | number | — | Controlled value. |
defaultValue | number | 0 | Initial value when uncontrolled. |
min | number | -Infinity | Lower clamp. |
max | number | Infinity | Upper clamp. |
step | number | 1 | Increment for −/+ and arrows. |
onValueChange | (value: number) => void | — | Fired on change. |