FormTextField

fun FormTextField(value: String, onValueChange: (String) -> Unit, label: String, modifier: Modifier = Modifier, enabled: Boolean = true, placeholder: String? = null, supportingText: String? = null, errorText: String? = null, singleLine: Boolean = true, keyboardOptions: KeyboardOptions = KeyboardOptions.Default, keyboardActions: KeyboardActions = KeyboardActions.Default, visualTransformation: VisualTransformation = VisualTransformation.None, trailingContent: @Composable () -> Unit? = null)

A single form field: an outlined text field with a label and one line of supporting or error text underneath.

When errorText is non-null the field is rendered in the error state and errorText replaces supportingText. Newly shown errors are announced through a polite live region.