FormTextField
A control interface for managing form text field state with built-in TextFieldState integration.
This interface provides seamless integration with Compose's TextFieldState API, offering automatic validation, focus management, and error handling for text input fields.
Usage:
form.Field(
selector = { it.emailState },
render = { field ->
TextField(
state = field.state,
isError = field.hasError,
modifier = Modifier.onFocusChanged { state ->
field.handleFocus(state.isFocused)
}
)
}
)
Content copied to clipboard
Properties
Link copied to clipboard
The current validation error for this field, if any.
Link copied to clipboard
Whether the field currently has any validation errors.
Link copied to clipboard
The TextFieldState that manages the text content and editing operations. This state can be directly passed to Compose text field components.