Textarea

Multiline text field that can grow as you type and show a character count. Focus highlights the field, an error gives it a single nudge, and the count turns red at the limit.

Preview

Props Changes apply to the live preview above.

Installation

npx @lumioui/cli add textarea

Usage

import { Textarea } from "@/components/ui/textarea/textarea";
<Textarea />

Examples

Error

A support "Report a problem" form, ink only.

Glass

The caption step of a photo post: the glass field rides over the photo being shared (the one place glass is earned), grows with the caption, and Share wakes up once there's text.

Note

An evening journal entry in green.

API reference

Prop Type Default
label string

Visible label above the field.

—
helper string

Helper text below the field.

—
error string

Error message — turns the field red.

—
minHeight number

Minimum height in points. Default 96.

96
autoGrow boolean

Grow with content.

false
showCount boolean

Show a live character count under the field ("n" or "n/max" with maxLength).

false
className string

NativeWind classes for the input.

—
glass boolean

Glass field — rounded material instead of the flat fill.

false
containerClassName string

Classes for the outer wrapper.

—
multiline boolean true