OptionalallowLeadingWhitespace?: booleanOptionalallowTrailingWhitespace?: booleanIndicates whether the value can have trailing whitespace. If not enabled, trailing whitespace is trimmed on blur.
OptionalautoComplete?: stringAuto-complete option for the input (supports the usual HTML values).
OptionalautoFocus?: booleanIndicates if the input should be auto-focused.
OptionalcleanRawInput?: (value: string) => stringA function to transform values input by the user before they are set as the value or shown in the input. Useful, for example, for restricting the allowed characters or controlling capitalization.
Optionaldisabled?: booleanIndicates if the input is disabled.
Optionalformat?: (value: TextFieldValue) => 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.
OptionalinputMode?: InputModeHints at the type of data that might be entered by the user while editing the element or its contents.
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: TextFieldValue) => 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.
Optionaltype?: TextInputTypeThe type of the text input.
The value of the input.
Indicates whether the value can have leading whitespace. If not enabled, leading whitespace is trimmed on blur.