Textarea
Multi-line text input field.
Installation
bunx bearnie add textarea bunx bearnie add textarea
bunx bearnie add textarea
pnpm dlx bearnie add textarea pnpm dlx bearnie add textarea
pnpm dlx bearnie add textarea
yarn dlx bearnie add textarea yarn dlx bearnie add textarea
yarn dlx bearnie add textarea
Usage
import { Textarea } from "@/components/bearnie/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 |