The shadcn Hover Card for people and agents: a preview card on hover or focus.
Import it and pass your content. The props that matter most are listed next.
import { HoverCard, HoverCardChip, HoverCardContent, HoverCardPerson } from "@/components/ui/notchset/hover-card";
export function HoverCardExample() {
return (
<HoverCard>
<HoverCardChip initials="MK">maya.kerr</HoverCardChip>
<HoverCardContent>
<HoverCardPerson person={{ name: "Maya Kerr", initials: "MK", role: "EVALS LEAD · PLANNER", stats: [["38", "REVIEWED"], ["14", "EVALS"], ["+7.5", "PTS"]], status: "ONLINE", online: true }} />
</HoverCardContent>
</HoverCard>
);
}HoverCard–
as the primitiveopen, defaultOpen, onOpenChange.
HoverCardTrigger delay / closeDelay–
number320ms to open (60ms when moving from another open card), 0 to close. Radix: openDelay / closeDelay on HoverCard.
HoverCardChip–
{ initials, agent? } + trigger propsThe designed trigger: an inline chip; children are the handle.
HoverCardContent–
side, sideOffset, align, collisionPadding, containerAbove its trigger by default (side top, 10px), kept 12px inside the viewport, flipping below when there's no room.
HoverCardPerson–
{ person: { name, initials, role, note, stats, status, online, agent } }The designed body.
HoverCardChipdata-slot="hover-card-trigger"
The inline chip.
HoverCardContentdata-slot="hover-card-content"
The card.
HoverCardPersondata-slot="hover-card-person"
The designed body.
components/ui/notchset/hover-card.tsx
pnpm dlx shadcn@latest add https://notchset.dev/r/hover-card.jsonpnpm dlx shadcn@latest add https://notchset.dev/r/radix-nova/hover-card.jsonFree, no account or key. Use the command for your project's primitives: a radix-*, new-york or default style in components.json is Radix, a base-* style is Base UI. With the @notchset registry added, @notchset/<name> picks for you.
pnpm add @base-ui/react@^1The CLI adds the styles to the CSS file named in components.json (tailwind.css). Check that it points at your global stylesheet, that the project uses Tailwind CSS v4, and that the file is imported in your root layout. Installed by hand: paste styles.css into that file.
Give your coding assistant the Markdown guide instead of screenshots.
https://notchset.dev/api/mcp (setup)v1.0.0 · 2026-10-02
First release