label | string | Yes | — | Visible label and accessible name. |
|---|
hint | string | No | — | Supporting field guidance, associated with the control. |
|---|
error | string | No | — | Error message. Replaces hint text and marks the field invalid. |
|---|
value | number | null | No | — | Controlled finite number or null for an empty field. |
|---|
defaultValue | number | null | No | null | Initial finite number or null when uncontrolled. |
|---|
onValueChange | ((value: number | null) => void) | No | — | Called with the edited/committed number or null when cleared. |
|---|
min | number | No | — | Optional finite lower bound. Must not exceed max. |
|---|
max | number | No | — | Optional finite upper bound. Must not be less than min. |
|---|
step | number | No | 1 | Positive finite decimal increment; stepping is anchored to min or zero. |
|---|
incrementLabel | string | Yes | — | Accessible name of the increment action. |
|---|
decrementLabel | string | Yes | — | Accessible name of the decrement action. |
|---|
disabled | boolean | No | — | Disables the native control. |
|---|
readOnly | boolean | No | — | Keeps the current value readable and focusable while preventing editing. |
|---|
required | boolean | No | — | Requires a non-empty native control value during form validation. |
|---|
name | string | No | — | Native form submission field name. |
|---|
placeholder | string | No | — | Text shown when the control has no value. |
|---|
onKeyDown | KeyboardEventHandler<HTMLInputElement> | No | — | Native key handler. Prevent default to skip built-in Arrow/Home/End/Enter handling. |
|---|
onFocus | FocusEventHandler<HTMLInputElement> | No | — | Called when the native control receives focus. |
|---|
onBlur | FocusEventHandler<HTMLInputElement> | No | — | Called when the native control loses focus. |
|---|
aria-describedby | string | No | — | IDs of additional descriptive elements; field components merge these with their hint or error ID. |
|---|
className | string | No | "" | Additional classes applied to the component’s documented root or control. |
|---|
id | string | No | — | Native control ID. Generated when omitted; the visible label and supporting text use this association. |
|---|
ref | Ref<HTMLInputElement> | No | — | Ref to the component’s documented DOM element. |
|---|