Textarea
Formv1.0.0
stable
Multi-line text input component with auto-resize and validation support.
Preview
npx inam-ui add textareaUsage Examples
Basic Textarea
Standard multi-line input
<Textarea placeholder="Describe your issue" />With Initial Rows
Larger initial height
<Textarea rows={6} placeholder="Extended content" />Accessibility
Keyboard Navigation
- •Tab - Move focus
Screen Reader
Ensure it has a visible label or an aria-label.
Props
| Name | Type | Default | Description |
|---|---|---|---|
placeholder | string | — | Placeholder text. |
rows | number | 3 | Initial number of rows. |
disabled | boolean | false | Whether the textarea is disabled. |
error | string | — | Error message to display. |