OptionalautoFocus?: booleanOptionaldisabled?: booleanIndicates if the input is disabled.
Optionalformat?: (value: NumberFieldValue) => stringA function to format the value into a standardized format. Only updates the value in the input on mount and blur.
Optionalid?: stringThe ID of the input.
Optionalinvalid?: booleanIndicates if the input is invalid.
Optionalname?: stringThe name of the input.
OptionalonBlur?: () => voidA callback function to call when focus is removed from the input.
OptionalonFocus?: () => voidA callback function to call when the input becomes focused.
Optionalplaceholder?: stringPlaceholder text to display when the value is blank.
A callback function to update the input value when a change happens.
OptionalsideEffect?: (v: NumberFieldValue) => voidA side effect function to call when the value changes as a result of user interaction with this input, and not external updates to the field value.
Optionalstep?: numberThe stepping interval when using the arrow keys (up/down) to increment/decrement the value. Note that holding the shift key uses a step of ten times the given step.
Optionalunit?: numberThe underlying unit of the field. Can be used, for example, to enter values in the tenths, dozens, hundreds (e.g. to display as dollars but underlying value is cents), thousands, or millions.
The value of the input.
Indicates if the input should be auto-focused.