Textarea

Installation

$npx shadcn-macos@latest add textarea

Examples

Props

<Textarea />
PropTypeDefaultDescription
rowsnumber3Visible line height count of the textarea area.
placeholderstring—Placeholder text shown when empty.
valuestring—Controlled text value.
disabledbooleanfalseWhether textarea interaction is disabled.
onChange(event: React.ChangeEvent<HTMLTextAreaElement>) => void—Callback fired when textarea content changes.
classNamestring—Custom classes.