Textarea
Live example
Textarea
Installation
npx shadcn@latest add https://hextech-ui.vercel.app/r/textarea.jsonAPI reference
These are the main Textarea options. See the exported TypeScript types for inherited native or primitive props.
| Prop | Type | Default |
|---|---|---|
rows | number | 2 |
disabled / required | boolean | false |
Editing and validation
Use a visible label associated with id. Use value and onChange to own the text, or defaultValue for local editing. Compose with Field for descriptions and errors; required participates in native form validation.