JGuang / JGuang UI
Components组件Base UIBase UI 组件

Textarea

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

Partially translated: Chinese navigation, titles, descriptions, and common headings. The technical body is currently in English.
Loading JGuang UI example…

Installation

Command

Manual

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

Update the import paths to match your project setup.

Usage

import { Textarea } from "@/components/ui/textarea"
<Textarea />

Field

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

Loading JGuang UI example…

Disabled

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

Loading JGuang UI example…

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.

Loading JGuang UI example…

Button

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

Loading JGuang UI example…

RTL

To enable RTL support in JGuang UI, see the RTL configuration guide.

Loading JGuang UI example…

Source: components/base/textarea.mdx

Technical documentation for JGuang UI.

On this page