供视力正常的用户预览链接后的内容。
¥API Reference
此组件继承了 悬停卡片基础组件 的属性。
¥This component inherits props from the Hover Card primitive.
¥Root
包含悬停卡片的所有部分。
¥Contains all the parts of the hover card.
¥Trigger
封装用于打开悬停卡片的链接。
¥Wraps the link that will open the hover card.
¥Content
包含打开的悬停卡片的内容。此组件基于 div
元素。
¥Contains the content of the open hover card. This component is based on the div
element.
¥Examples
¥Size
使用 size
属性控制大小。
¥Use the size
prop to control the size.
¥With inset content
使用 插入 组件将内容与悬停卡片边缘对齐。
¥Use the Inset component to align content flush with the sides of the hover card.