Textarea
A field for longer answers. Same border, focus ring and 16px text as the Input, and at least 120px tall.
Installation
npx shadcn@latest add @sevenone/textareaUsage
import { Textarea } from "@/components/ui/textarea"Examples
With label and hint
Your message goes to the support team.
<Label htmlFor="message">Message</Label>
<Textarea id="message" placeholder="Type your message here." aria-describedby="message-hint" />
<p id="message-hint" className="text-sm text-muted-foreground">
Your message goes to the support team.
</p>Accessibility
- Pair it with a Label and connect hints with aria-describedby.
- It grows with the content (field-sizing), so nothing is hidden behind a scroll.