Hextech UI

Textarea

Live example

Textarea

Installation

Terminal
npx shadcn@latest add https://hextech-ui.vercel.app/r/textarea.json

API reference

These are the main Textarea options. See the exported TypeScript types for inherited native or primitive props.

PropTypeDefault
rowsnumber2
disabled / requiredbooleanfalse

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.