Components
Textarea
Multiline text input with auto-resize, character count, and full form integration.
Import
Usage
Props
| Prop | Type | Default | Description |
|---|---|---|---|
label | string | — | Visible label |
hint | string | — | Helper text below the textarea |
error | string | — | Error message (sets aria-invalid) |
autoResize | boolean | false | Grow with content automatically |
showCount | boolean | false | Show character count (requires maxLength) |
maxLength | number | — | Maximum character limit |
rows | number | 3 | Initial row height |
className | string | — | Additional CSS classes on wrapper |
...rest | TextareaHTMLAttributes | — | All native textarea attributes |
Auto-resize
Character count
Shows a live counter like "0 / 160" that updates as the user types. When over the limit, the counter turns red.
Controlled
Accessibility
- Same label/error association as
InputviahtmlForandaria-describedby aria-invalidset whenerroris provided- Character count announces to screen readers via
aria-live