Textarea
A multi-line text input component with neumorphic styling.
Installation
$ npx shadcn@latest add "/r/textarea.json"
Usage
Sizes
Available in three sizes to accommodate different layouts.
Error State
Use the error prop to indicate an error state.
Disabled State
Use the disabled prop to disable the textarea.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| size | "sm" | "md" | "lg" | "md" | The size of the textarea. |
| error | boolean | false | Whether the textarea is in an error state. |
| disabled | boolean | false | Whether the textarea is disabled. |
| className | string | - | Additional CSS classes to apply to the textarea. |