---
title: "Textarea"
description: "A multi-line text input that grows with its content, with focus, disabled, and invalid states that match the other inputs."
plan: Free
docs: https://ui.edbn.me/docs/components/textarea
---

# Textarea

A multi-line text input that grows with its content, with focus, disabled, and invalid states that match the other inputs.

## Installation

```bash
npx shadcn@4.19.0 add https://ui.edbn.me/r/textarea.json
```

## Dependencies
- edbn: edbn-base

## Usage

```tsx examples/textarea-basic.tsx
"use client";
import { Textarea } from "@/components/ui/textarea";

export default function TextareaBasicPreview() {
  return (
    <Textarea
      className="max-w-sm"
      aria-label="Message"
      placeholder="Write a message…"
    />
  );
}
```

## Files
- components/ui/textarea.tsx (19 lines)

## For agents
- Base theme, once per project: npx shadcn@4.19.0 add https://ui.edbn.me/r/edbn-base.json
- MCP server with search, items, examples and source: https://ui.edbn.me/mcp
- Every page and item: https://ui.edbn.me/llms.txt
