Skip to content

A2Card

卡片容器组件,支持多种宽度规格。

属性

属性类型默认值说明
width`xssmmd
headerstring-头部标题(设置后自动显示 Document 图标)
headerBgColorstring#F8F8FB头部背景色
shadow`alwayshovernever`

宽度规格

像素
xs300px
sm400px
md560px
lg720px
xl960px
full100%

基础示例

基础卡片
无内容

嵌套布局示例

卡片内嵌列布局
无内容

JSON Schema

json
{
  "id": "cardId",
  "type": "a2-card",
  "props": {
    "width": "xs",
    "header": "卡片标题",
    "shadow": "hover"
  },
  "children": []
}

A2UI 文档