Package-level declarations

Types

Link copied to clipboard
class Form(scope: CoroutineScope)

A form is a list of FormFields with methods to manage them (add, remove, verify, etc).

Link copied to clipboard
class FormField<T>(val required: Boolean = true, initialValue: T? = null) : MutableStateFlow<T?>

A FormField is a MutableStateFlow, so it can be collected and its value updated like any other MutableStateFlow.

Link copied to clipboard
data class FormFieldValidationResult(val isValid: Boolean, val error: String? = null, val feedback: Any? = null)
Link copied to clipboard

This object contains some form field validators that are commonly needed in forms.

Link copied to clipboard

Validators are extension functions for validating form fields