# Textarea

> A multi-line field for prose. Sans for what you type, mono for the placeholder, and an error state.

Section: Forms. Docs: https://entrepta.vercel.app/docs/components/textarea

## Install

```bash
npx @entrepta/cli@latest add textarea
```

Files: `primitives/textarea.tsx`.
npm packages: `class-variance-authority`.

## Usage

```tsx
import { Textarea } from "@/components/entrepta/textarea"

<Textarea placeholder="// what are you building?" />
<Textarea state="error" rows={6} />
```

## Props

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `state` | `"default" \| "error"` | "default" | Error sets the border and aria-invalid |
| `rows` | `number` | 4 | Visible lines |
