An input value.
A mutable state of a formatted input.
Returns an initial mutable state of a formatted input that corresponds to a value.
A value provided to a useFormattedInput.
OptionalgetReturns the selected text. Called when text is copied or cut from a formatted input.
By default, a substring of formatted value is used.
The current state of an input.
A selected text.
OptionalonUpdates the state when input is blurred. No-op by default.
The current state of an input.
Updates the state after a user has changed a formatted value.
The state of an 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 new mutable state of a formatted input.
OptionalonUpdates the state when an input is focused. No-op by default.
The current state of an input.
OptionalonUpdates the state after the text selection is changed.
By default, state is updated with the new selection range.
The state of an input before the selection change.
The new start of the text selection.
The new end of the text selection.
A handler that updates state when various input events occur.
See
useFormattedInput