Skip to content

//ui/dev.atick.core.ui.components/JetpackMultilineTextField

JetpackMultilineTextField

[androidJvm]\

@Composable

fun JetpackMultilineTextField(value: String, onValueChange: (String) -> Unit, label: @Composable() -> Unit, leadingIcon: @Composable() -> Unit, modifier: Modifier = Modifier, trailingIcon: @Composable() -> Unit = {}, errorMessage: String? = null, keyboardOptions: KeyboardOptions = KeyboardOptions.Default, visualTransformation: VisualTransformation = VisualTransformation.None, shape: Shape = RoundedCornerShape(16.dp), minLines: Int = 1, maxLines: Int = 5)

A Jetpack Compose internal component for rendering a multiline text field with optional error message display.

Parameters

androidJvm

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.
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.
keyboardOptions The keyboard options for the text field.
visualTransformation The visual transformation to apply to the text.
shape The shape of the text field.
minLines The minimum number of lines to display.
maxLines The maximum number of lines to display before scrolling.