forms · @awesome-ds/react
Textarea
Multi-line labeled field.
State matrix
idle
focus
disabled
error
Anatomy
- label
- multiline text area
- hint or error
Keyboard contract
Native multiline editing; Enter inserts a newline rather than submitting implicitly.
Screen-reader contract
Label and descriptive/error text are associated with the textarea.
Content rules
- State expected content and limits.
- Do not use placeholder text as a label.
Public API
| Prop | Type | required | Description |
|---|---|---|---|
id | string | required | Association identifier |
label | string | required | Field name |
hint | string | — | Associated supporting guidance |
error | string | — | Associated recovery message |
…native | TextareaHTMLAttributes<HTMLTextAreaElement> | — | Native textarea attributes |
Adaptation contracts
- RTL
- Keep label, input, hint, and error aligned to inline-start without changing DOM order.
- High contrast
- Use system field borders, focus indicators, and non-color invalid cues.
- Reduced motion
- Change validation and selection states without sliding or spring motion.
Verification IDs
Live
Live
Copyable example
import { Textarea } from "@awesome-ds/react";
<Textarea id="bio" label="Bio" />