Docs
悬停卡

悬停卡

让视力正常的用户预览链接后面可用的内容。

安装

¥Installation

pnpm dlx shadcn@latest add hover-card

用法

¥Usage

import {
  HoverCard,
  HoverCardContent,
  HoverCardTrigger,
} from "@/components/ui/hover-card"
<HoverCard>
  <HoverCardTrigger>Hover</HoverCardTrigger>
  <HoverCardContent>
    The React Framework – created and maintained by @vercel.
  </HoverCardContent>
</HoverCard>