Textarea

Inputs & Controls

macOS multi-line text field with subtle inset shadow.

Installation

$npx shadcn-macos@latest add textarea

Examples

Props

<Textarea />
PropTypeDefaultDescription
rowsnumber3Visible line height count of the textarea area.
placeholderstringPlaceholder text shown when empty.
valuestringControlled text value.
disabledbooleanfalseWhether textarea interaction is disabled.
onChange(event: React.ChangeEvent<HTMLTextAreaElement>) => voidCallback fired when textarea content changes.
classNamestringCustom classes.