KTextarea
Shadcn/ui-style Textarea — mirrors textarea.tsx.
A multi-line text input component designed for longer entries like messages or descriptions. It provides a consistent look and feel with other Kindling input components and handles error states, disabled states, and placeholder text.
Respects androidx.compose.ui.platform.LocalLayoutDirection for RTL text alignment automatically.
Example usage:
var message by remember { mutableStateOf("") }
KTextarea(
value = message,
onValueChange = { message = it },
placeholder = "Type your message here...",
minLines = 3
)Parameters
The current text value to display in the textarea.
Callback invoked when the text value changes.
The modifier to be applied to the layout.
The placeholder text to display when the textarea is empty.
Whether the textarea is enabled for user interaction.
Whether the textarea should display an error state.
The minimum number of lines to display.
The maximum number of lines to display.
Software keyboard options.
Software keyboard actions.