跳至正文

Card

Content container for headings, text, links, and actions.

浏览器
Chrome 123+Firefox 121+Safari 17.5+
层级
0
压缩后大小
164 B
强制布局预算
0 ms
axe 预算
0
支持 SSR
是
公开契约
测试环境

交互示例

Card

示例

API

Card

属性类型默认值说明
childrenReactNode—该组成部分的内容。
asElementType"div"Native element or component used for the root.
classNamestring—应用于根元素的类名。
styleCSSProperties—Native root styles.
refRef<HTMLElement>—Ref forwarded to the rendered root element.
renderReactElement | ((props, state) => ReactElement)—替换渲染元素,同时保留行为和无障碍连接关系。

键盘

按键操作

无障碍

Groups related content without adding a role, focus target, or click behavior. Choose a semantic element such as article when the content warrants it; keep links and actions independent.

样式钩子

data-uiify-card