Package-level declarations

Types

Link copied to clipboard

A control interface for managing form text field state with built-in TextFieldState integration.

Link copied to clipboard

A default adapter that validates TextFieldState.text as CharSequence.

Link copied to clipboard

An adapter interface specifically designed for TextFieldState type conversion.

Functions

Link copied to clipboard

Converts a TextFieldState into a FormState for single-field form management.

Link copied to clipboard
fun Form<TextFieldState>.Field(validator: FieldValidator<CharSequence>? = null, name: FieldName? = null, enabled: Boolean = true, render: @Composable (FormTextField) -> Unit)

Creates a field for a TextFieldState-based form with direct text validation.

fun <S> Form<TextFieldState>.Field(adapter: TextFieldStateAdapter<S>, validator: FieldValidator<S>? = null, name: FieldName? = null, enabled: Boolean = true, render: @Composable (FormTextField) -> Unit)

Creates a field for a TextFieldState-based form with type adaptation and validation.

fun <T> Form<T>.Field(selector: (T) -> TextFieldState, validator: FieldValidator<CharSequence>? = null, name: FieldName? = null, dependsOn: FieldNames? = null, enabled: Boolean = true, render: @Composable (FormTextField) -> Unit)

Creates a form text field with validation and state management for TextFieldState.

fun <T, S> Form<T>.Field(selector: (T) -> TextFieldState, adapter: TextFieldStateAdapter<S>, validator: FieldValidator<S>? = null, name: FieldName? = null, dependsOn: FieldNames? = null, enabled: Boolean = true, render: @Composable (FormTextField) -> Unit)

Creates a form text field with type adaptation, validation, and state management.

Link copied to clipboard
fun <T> Form<T>.rememberField(selector: (T) -> TextFieldState, validator: FieldValidator<CharSequence>? = null, name: FieldName? = null, dependsOn: FieldNames? = null, enabled: Boolean = true): FormTextField

Creates and remembers a form text field control with validation and state management.

fun <T, S> Form<T>.rememberField(selector: (T) -> TextFieldState, adapter: TextFieldStateAdapter<S>, validator: FieldValidator<S>? = null, name: FieldName? = null, dependsOn: FieldNames? = null, enabled: Boolean = true): FormTextField

Creates and remembers a form text field control with type adaptation, validation, and state management.