KPSingleLineOutlinedTextField

fun KPSingleLineOutlinedTextField(style: OutlinedTextFieldStyle, value: String, modifier: Modifier = Modifier, label: String? = null, placeholder: String? = null, errorLabel: String? = null, isError: Boolean = false, enabled: Boolean = true, colors: TextFieldColors = style.outlinedTextFieldColors, onValueChange: (String) -> Unit, trailingContent: @Composable TextFieldScope.() -> Unit? = null)

Composable function to create a single-line text input field with an outlined style.

Parameters

style

Style configuration for the TextField. This should be an object implementing the OutlinedTextFieldStyle interface.

value

The initial value for the TextField.

modifier

Modifier used to shape the TextField.

label

The label text to display above the TextField.

errorLabel

The error message to display below the TextField when there is an error.

isError

Indicates whether the TextField is in an error state.

enabled

Determines if the TextField is enabled for interaction.

colors

The colors configuration for the TextField. This parameter allows configuring the colors of the TextField component, including the text color, background color, and colors for different states (such as selected, focused, disabled, etc.).

onValueChange

Callback for when the value of the TextField changes.

trailingContent

Optional trailing container that can be either a KPIcon or KPText. The container will be placed at the end of the TextField.