# Textarea · JGuang UI

> Displays a form textarea or a component that looks like a textarea.

- Page: https://jiguang132.com/systems/jguang-ui/docs/components/base/textarea
- Based on: shadcn/ui documentation (MIT) @ bc0705384b51252af26dcc65425b216bf5eb063c

> Example `textarea-demo`: interactive preview on https://jiguang132.com/systems/jguang-ui/docs/components/base/textarea


## Installation


  

**Command**


  

**Manual**


```text
Use the JGuang UI Registry URL provided on /systems/jguang-ui#install.
```


### Copy and paste the following code into your project.


[View complete source: components/ui/textarea.tsx](/r/jguang-ui/base/textarea.json)


### Update the import paths to match your project setup.


## Usage

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

```tsx
<Textarea />
```

## Field

Use `Field`, `FieldLabel`, and `FieldDescription` to create a textarea with a label and description.


> Example `textarea-field`: interactive preview on https://jiguang132.com/systems/jguang-ui/docs/components/base/textarea


## Disabled

Use the `disabled` prop to disable the textarea. To style the disabled state, add the `data-disabled` attribute to the `Field` component.


> Example `textarea-disabled`: interactive preview on https://jiguang132.com/systems/jguang-ui/docs/components/base/textarea


## Invalid

Use the `aria-invalid` prop to mark the textarea as invalid. To style the invalid state, add the `data-invalid` attribute to the `Field` component.


> Example `textarea-invalid`: interactive preview on https://jiguang132.com/systems/jguang-ui/docs/components/base/textarea


## Button

Pair with `Button` to create a textarea with a submit button.


> Example `textarea-button`: interactive preview on https://jiguang132.com/systems/jguang-ui/docs/components/base/textarea


## RTL

To enable RTL support in JGuang UI, see the [RTL configuration guide](/systems/jguang-ui/docs/rtl).


> Example `textarea-rtl`: interactive preview on https://jiguang132.com/systems/jguang-ui/docs/components/base/textarea

---

Index of all JGuang resources: https://jiguang132.com/llms.txt
