Creates a new NumberInputHandler instance.
The number format used to format input values.
Handler options.
Protected_Handler options.
ReadonlyformatThe number format used to format input values.
Readonlyistrue if the number input supports a decimal separator.
Returns the initial mutable state of a formatted input corresponding to the given value.
A value provided to useFormattedInput.
Returns the selected text.
Called when text is copied or cut from a formatted input. By default, a substring of the formatted value is used.
The current state of the input.
The selected text.
Updates the state when the input is blurred. No-op by default.
The current state of the input.
Updates the state after the user changes the formatted value.
The state of the input before the formatted value change.
The new formatted value.
The new start of the text selection.
The new end of the text selection.
A handler for numeric formatted input.
Example
See
useNumberInput