JetpackTextFiled
fun JetpackTextFiled(value: String, onValueChange: (String) -> Unit, label: @Composable () -> Unit, leadingIcon: @Composable () -> Unit, modifier: Modifier = Modifier, keyboardOptions: KeyboardOptions = KeyboardOptions.Default, trailingIcon: @Composable () -> Unit = {}, errorMessage: String? = null)
A Jetpack Compose text field with customizable appearance and optional error message display.
Parameters
value
The current text value of the text field.
onValueChange
The callback invoked when the text value changes.
label
A composable function that represents the label of the text field.
leadingIcon
A composable function that represents the leading icon of the text field.
modifier
The modifier for this text field.
keyboardOptions
The keyboard options for the text field.
trailingIcon
A composable function that represents the trailing icon of the text field.
errorMessage
The error message to display below the text field, if any.