For AI agents: the complete documentation index is available at https://rickyshin93.github.io/tao-ui/zh/llms.txt, the full documentation bundle is available at https://rickyshin93.github.io/tao-ui/zh/llms-full.txt, and this page is available as Markdown at https://rickyshin93.github.io/tao-ui/zh/components/form-section.md.
v0.0.57
  • 简体中文
  • FormSection

    数据录入@rockshin/tao-ui

    使用标题和说明组织一组相关表单字段。

    何时使用

    复杂表单需要按用户可理解的主题分组时使用 FormSection。

    推荐

    • 区段标题使用用户语言。
    • 说明只补充区段目的,不重复字段标签。

    避免

    • 不要为每个单独字段创建区段。

    代码演示

    基础用法

    Profile

    Information shown to teammates.

    TSX

    多组字段

    Identity

    How teammates recognize you.

    Contact

    Where account notices are sent.

    TSX

    语义部件

    Advanced

    Settings for experienced users.

    Advanced configuration belongs here.
    TSX

    完整表单组合

    组合布局、字段与操作区,用原生提交展示保存结果。

    Profile

    Public workspace information

    A short introduction

    No changes saved
    TSX

    可选说明

    标题可独立使用;有必要补充上下文时再显示 description。

    Contact
    Internal notes

    Visible to workspace members only

    TSX

    分组外观

    通过 header 与 body 语义部件调整分组样式。

    Billing
    TSX

    API

    FormSection

    属性说明类型默认值
    className节点类名string | undefined-
    style节点样式CSSProperties | undefined-