OptionalallowLeadingWhitespace?: booleanOptionalallowTrailingWhitespace?: booleanIndicates whether the value can have trailing whitespace. If not enabled, trailing whitespace is trimmed on blur.
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.
Optionalformat?: FieldFormatFunction<TextFieldValue>Format function for the value. Controls how the value should be formatted when displayed in smaller contexts where only strings are allowed.
OptionalInput?: (props: TextFieldInputProps) => JSX.Element | nullThe input component to use when editing.
OptionalinputFormat?: (value: TextFieldValue) => stringA function to format the value in the input into a standardized format. Only updates the value in the input on
mount and blur of the input. Not to be confused with format, which is used when the field is in display mode.
OptionalinputMode?: InputModeHints at the type of data that might be entered by the user while editing the element or its contents.
OptionalmaxLength?: numberMaximum length for values (validation).
OptionalminLength?: numberMinimum length for values (validation).
OptionalminRows?: numberMinimum number of rows for multiline input.
OptionalmultiLine?: booleanIndicates whether the input should allow multiple lines (<textarea>) or only a single line (<input>).
Optionalplaceholder?: stringPlaceholder text to display in the input when the value is blank.
Indicates whether the value can have leading whitespace. If not enabled, leading whitespace is trimmed on blur.