# Textarea

> Multi-line text input with the same field chrome as Input.

Registry name: `textarea`. HTML docs: https://ui.anuragroy.dev/component/textarea.

## Install

```bash
npx shadcn@latest add https://ui.anuragroy.dev/r/textarea.json
```

If the website is down: `npx shadcn@latest add https://raw.githubusercontent.com/anurag-roy/ui.anuragroy.dev/main/public/r/textarea.json`.

Registry JSON: https://ui.anuragroy.dev/r/textarea.json (GitHub: https://raw.githubusercontent.com/anurag-roy/ui.anuragroy.dev/main/public/r/textarea.json).

## Import

Import paths follow the consumer `components.json` aliases. After a default install:

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

## Usage

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

export function Example() {
  return <Textarea placeholder="Write a note…" />
}
```

## API

### Textarea

Native textarea with field styles.

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `className` | string | — |  |

## See also

- [HTML page](https://ui.anuragroy.dev/component/textarea): Preview and the same docs in the site chrome.
- [Registry item](https://ui.anuragroy.dev/r/textarea.json): Source files and dependencies.
- [Catalog](https://ui.anuragroy.dev/component): All components.
- [llms.txt](https://ui.anuragroy.dev/llms.txt): Agent index for this library.
