bearnie

Textarea

Multi-line text input field.

Installation

npx bearnie add textarea
npx bearnie add textarea

Usage

import { Textarea } from "@/components/ui/textarea"
<Textarea placeholder="Type here..." />

Examples

With label

Disabled

With button

Anatomy

  • Textarea - A single multi-line input element

Props

Textarea

PropTypeDefaultDescription
placeholderstring-Placeholder text
disabledbooleanfalseDisables the textarea
requiredbooleanfalseMakes the field required
invalidbooleanfalseShows error state
namestring-Form field name
idstring-Element ID
rowsnumber4Number of visible rows
valuestring-Textarea value
classstring-Additional CSS classes