Text Field
A TextField component with Miuix style.
Parameters
The TextFieldState to be shown in the text field.
The modifier to be applied to the TextField.
The margin inside the TextField.
The background color of the TextField.
The corner radius of the TextField.
The label to be displayed when the TextField is empty.
The color of the label.
The color of the border when the TextField is focused.
Whether to use the label as a placeholder.
Whether the TextField is enabled.
Whether the TextField is read-only.
The input transformation to be applied to the TextField.
The text style to be applied to the TextField.
The keyboard options to be applied to the TextField.
The keyboard action handler for the TextField.
The line limits for the TextField.
The leading icon to be displayed in the TextField.
The trailing icon to be displayed in the TextField.
The callback to be called when the text layout changes.
The interaction source to be applied to the TextField.
The brush to be used for the cursor.
The output transformation for the text field.
The scroll state for the text field.
A TextField component with Miuix style.
Parameters
The input TextFieldValue to be shown in the text field.
The callback that is triggered when the input service updates values in TextFieldValue. An updated TextFieldValue comes as a parameter of the callback.
The modifier to be applied to the TextField.
The margin inside the TextField.
The background color of the TextField.
The corner radius of the TextField.
The label to be displayed when the TextField is empty.
The color of the label.
The color of the border when the TextField is focused.
Whether to use the label as a placeholder.
Whether the TextField is enabled.
Whether the TextField is read-only.
The text style to be applied to the TextField.
The keyboard options to be applied to the TextField.
The keyboard actions to be applied to the TextField.
The leading icon to be displayed in the TextField.
The trailing icon to be displayed in the TextField.
Whether the text field is single line.
The maximum number of lines allowed to be displayed in TextField.
The visual transformation to be applied to the TextField.
The callback to be called when the text layout changes.
The interaction source to be applied to the TextField.
The brush to be used for the cursor.
A text field component with Miuix style.
Parameters
The text to be displayed in the text field.
The callback to be called when the value changes.
The modifier to be applied to the TextField.
The margin inside the TextField.
The background color of the TextField.
The corner radius of the TextField.
The label to be displayed when the TextField is empty.
The color of the label.
The color of the border when the TextField is focused.
Whether to use the label as a placeholder.
Whether the TextField is enabled.
Whether the TextField is read-only.
The text style to be applied to the TextField.
The keyboard options to be applied to the TextField.
The keyboard actions to be applied to the TextField.
The leading icon to be displayed in the TextField.
The trailing icon to be displayed in the TextField.
Whether the text field is single line.
The maximum number of lines allowed to be displayed in TextField.
The visual transformation to be applied to the TextField.
The callback to be called when the text layout changes.
The interaction source to be applied to the TextField.
The brush to be used for the cursor.