ComponentServer-safe
Textarea
A responsive multiline field with refined focus and validation states.
Installation
Preview
Usage
tsx
import { Textarea } from "@/components/ui/textarea"
export function TextareaDemo() {
return <Textarea placeholder="Tell us what you are building…" />
}API reference
| Prop | Type | Default | Description |
|---|---|---|---|
rows | number | — | Sets an initial visible row count. |
aria-invalid | boolean | false | Enables the destructive validation state. |
className | string | — | Overrides or extends textarea styling. |