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/card.md.
v0.0.57
  • 简体中文
  • Card

    数据展示@rockshin/tao-ui

    将相关内容、操作和标签视图组合在同一容器内。

    组件采用 tao-ui 原生实现,公共 API 对齐 Ant Design 6.7.0。外观、主题 token 与 Semantic DOM 定制遵循 tao-ui,主题通过 TaoProvider 配置。

    公共 Card API 遵循 6.7.0;样式使用 tao-ui token 与 Semantic DOM,标签页由 rc 底层引擎和 tao-ui 样式实现。

    何时使用

    用于呈现独立的信息记录,操作使用明确的链接或按钮。

    代码演示

    标题与额外操作

    Workspace
    Keep related project information together.
    TSX

    尺寸与变体

    Small card
    Compact details.
    Outlined card
    Default surface.
    Borderless
    A surface inside a shaded region.
    TSX

    封面、元信息与操作

    AL
    Design notes
    Updated today by Ada
    TSX

    受控标签页

    Project

    Project summary and owners.

    TSX

    加载内容

    Account
    TSX

    网格与内部卡片

    390 × 640
    TSX

    语义样式与主题

    Local theme
    This card inherits its local tokens and dark surface.
    TSX

    API

    Card

    属性说明类型默认值
    bordered@deprecated Use variant.boolean | undefined-
    headStyle@deprecated Use styles.header.CSSProperties | undefined-
    bodyStyle@deprecated Use styles.body.CSSProperties | undefined-