Textarea

Multi-line text input with optional label, hint, and error state

Category: inputs · WCAG 2.2-AA · form, text, multiline, ai

States

Props

PropTypeDefaultDescription
labelstring—Text label for the control (standalone use). Omit it when wrapping the Textarea in a Field — the Field owns the label, and setting both double-labels the control.
hintstring—Supplementary hint text shown with the control.
errorstring—Error message shown when the value is invalid.
rowsnumber4Number of visible text rows.
resize'none' | 'vertical' | 'both'verticalWhich directions the textarea can be resized ('none' | 'vertical' | 'both').
autosizebooleanfalseGrow the control with its content instead of holding the fixed rows height. rows becomes the minimum and --cascivo-textarea-max-block-size (default 20lh) the ceiling. Pure CSS (field-sizing: content) — no measurement and no listener; where unsupported the fixed rows height is kept.
placeholderstring—Placeholder text shown when the field is empty.
disabledbooleanfalseWhen true, disables the control and removes it from the tab order.
valuestring—The controlled value.
defaultValuestring—The initial value when uncontrolled.
onChangeReact.ChangeEventHandler<HTMLTextAreaElement>—Called with the change event; read the new value from `event.target.value`.
ariaLabelstring—Invisible accessible name, for when a visible element outside this component already labels it and `label` would render that text a second time. ⚠ `label` on this component is **visible**; `IconButton.label`/`Sparkline.label` are invisible names, which is the prior that costs adopters a duplicated label. The raw DOM `aria-label` still wins over this.
aibooleanfalseAI presence: an AI-tinted border and a soft aura, marking a value AI produced or suggested. Visual only — put an AiBadge in the label so the provenance is also text, and clear `ai` once the person edits the value.

Design tokens

When to use

When not to use

How to build an accessible Textarea in React →

Examples

With label

<Textarea label="Message" placeholder="Type here…" />

With error

<Textarea label="Bio" error="Bio is required" />

Related components

← Back to docs