FormComponent

fun FormComponent(key: String, mandatory: Boolean = true, content: @Composable (valid: MutableState<Boolean>) -> Unit)(source)

A component that represents a form field.

Parameters

key

A unique identifier for the form field.

mandatory

Whether the form field is mandatory or not. If false, will not affect the AuthState.validForm value. Default is true.

content

The composable function that defines the content of the form field and receives a mutable state object as a parameter.