Textarea
Atomshadcn/ui, restyled with tokensThe bare multi-line control. Grows with its content from a three-line minimum.
components/atoms/textarea.tsx- Use it for
- Building a new molecule.
- Not for
- A form field. Use TextAreaField.
States
Usage
import { Textarea } from '@/components/atoms/textarea';
<Textarea aria-label="Note" />Props
| Prop | Type | Default | Description |
|---|---|---|---|
| aria-invalid | boolean | — | The error state. |
| ...rest | ComponentProps<'textarea'> | — | Every native textarea prop, including ref. |
Accessibility
- Needs a name, the same way Input does.