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

多行输入框

接收较长的多行文本内容。

中文模式已适配导航、标题、简介、目录与常用章节名称。翻译状态:部分完成;技术正文目前仍为英文。
Loading JGuang UI example…

安装

Command

Manual

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

将以下代码复制到你的项目中。

View complete source: components/ui/textarea.tsx

根据项目配置更新导入路径。

用法

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…

从右到左布局

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

Loading JGuang UI example…

来源: components/base/textarea.mdx

JGuang UI 技术文档。

On this page