A multi-line text input field.
Basic textarea component.
import { Textarea } from "@/components/ui/textarea" export function TextareaDemo() { return <Textarea placeholder="Type your message here..." /> }
Prop | Type | Default | Description |
---|---|---|---|
placeholder | string | - | The placeholder text when the textarea is empty. |
disabled | boolean | false | Whether the textarea is disabled. |
required | boolean | false | Whether the textarea is required. |
className | string | - | Additional CSS classes to style the textarea. |