Textarea
A multi-line text input field for longer text content, supporting colors, sizes, and variants.
Installation
npx jsx-daisyui add textareaDefault
textarea-default
Colors
textarea-colors
Sizes
textarea-sizes
Ghost
textarea-ghost
Disabled
textarea-disabled
Form Control
textarea-form
Props
Textarea
| Prop | Type | Default | Description |
|---|---|---|---|
color | 'neutral' | 'primary' | 'secondary' | 'accent' | 'info' | 'success' | 'warning' | 'error' | - | The color variant of the textarea. |
size | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'md' | The size of the textarea. |
variant | 'filled' | 'ghost' | 'filled' | The visual style variant. |