Textarea
Multi-line text input field.
Installation
npx @vds-testing/cli add textareanpx @vds-testing/cli add textarea
npx @vds-testing/cli add textarea
bunx @vds-testing/cli add textareabunx @vds-testing/cli add textarea
bunx @vds-testing/cli add textarea
pnpm dlx @vds-testing/cli add textareapnpm dlx @vds-testing/cli add textarea
pnpm dlx @vds-testing/cli add textarea
yarn dlx @vds-testing/cli add textareayarn dlx @vds-testing/cli add textarea
yarn dlx @vds-testing/cli add textarea
Usage
import { Textarea } from "@/components/vds/textarea"
<Textarea placeholder="Type here..." />
Anatomy
Textarea - A single multi-line input element
Props
Textarea
| Prop |
Type |
Default |
Description |
| placeholder |
string |
- |
Placeholder text |
| disabled |
boolean |
false |
Disables the textarea |
| required |
boolean |
false |
Makes the field required |
| invalid |
boolean |
false |
Shows error state |
| name |
string |
- |
Form field name |
| id |
string |
- |
Element ID |
| rows |
number |
4 |
Number of visible rows |
| value |
string |
- |
Textarea value |
| class |
string |
- |
Additional CSS classes |