用于分组相关内容和操作的容器。
¥API Reference
此组件基于 div
元素并支持 常用边距属性。
¥This component is based on the div
element and supports common margin props.
¥Examples
¥As another element
使用 asChild
属性将卡片渲染为链接或按钮。此属性为交互状态添加了样式,例如悬停和聚焦。
¥Use the asChild
prop to render the card as a link or a button. This prop adds styles for the interactive states, like hover and focus.
¥Size
使用 size
属性控制大小。
¥Use the size
prop to control the size.
¥Variant
使用 variant
属性控制视觉样式。
¥Use the variant
prop to control the visual style.
¥With inset content
使用 插入 组件将内容与卡片边缘对齐。
¥Use the Inset component to align content flush with the sides of the card.