Skip to main content
161

Search Lumen

Find components, APIs, guides, and recipes.

GitHub
Android docs
FormsAndroid

Textarea

Capture multiline native text with shared labeling, supporting copy, and error treatment.

Public APILumenTextareaAndroid / Compose

Native example

Use Textarea

Use for multi-line freeform input. Prefer Text field for short single-line values and keep validation messages concise.

Textarea rendered in the Android phone emulator Lumen playground
Verified runtime captureAndroid phone emulator
kotlin
LumenTextarea(
    value = notes,
    onValueChange = ::setNotes,
    label = "Release notes",
    description = "Summarize the visible changes."
)

Reference

Public API

The primary shared and platform-specific options exposed by LumenTextarea.

APIValues or typeDefaultDescription
labelStringRequiredProvides the visible and accessible label.
valueStringRequiredStores the controlled text value.
onValueChange(String) -> UnitRequiredUpdates the controlled text value.
descriptionString?nilAdds supporting input guidance.
errorMessageString?nilMarks and explains an invalid value.

Native behavior

Design and accessibility

When to use it

Use for multi-line freeform input. Prefer Text field for short single-line values and keep validation messages concise.

Accessibility

The native multiline editor keeps platform text-entry behavior, exposes its visible label, and presents supporting or error context without replacing the current value.

Shared component

Available on other platforms

React NativeApple / SwiftUI
Android docsCompose module