Textarea
Inputs & Controls
macOS multi-line text field with subtle inset shadow.
Installation
$npx shadcn-macos@latest add textarea
Examples
Props
<Textarea />| Prop | Type | Default | Description |
|---|---|---|---|
| rows | number | 3 | Visible line height count of the textarea area. |
| placeholder | string | — | Placeholder text shown when empty. |
| value | string | — | Controlled text value. |
| disabled | boolean | false | Whether textarea interaction is disabled. |
| onChange | (event: React.ChangeEvent<HTMLTextAreaElement>) => void | — | Callback fired when textarea content changes. |
| className | string | — | Custom classes. |