Textarea
A multi-line text input for longer content.
Installation#
pnpm dlx shadcn@latest add @davinciui/textareaUsage#
API Reference#
| Prop | Type | Default |
|---|---|---|
placeholderPlaceholder text. | string | — |
disabledDisables the textarea. | boolean | false |
requiredMarks as required. | boolean | false |
classNameAdditional CSS classes. | string | — |
Accessibility#
A native textarea keeps standard keyboard and screen-reader behavior, with a visible focus-visible ring, aria-invalid destructive styling, and disabled opacity. Labels and descriptions must be supplied by the consumer.
Motion#
Static wrapper primitive with no meaningful motion; styling only smooths color and shadow, with no keyframes, transitions, or reduced-motion handling.
View source
Click the icon in the preview toolbar to browse source for each variant.
Keep in mind
This component is inspired by various open-source projects and patterns. Please verify licenses and implementation details before using in production.
Need a custom component?
I build bespoke UI components & websites tailored to your brand.

