About
A small popover panel that appears when hovering (or focusing) a trigger element, used to preview extra details like a customer summary or a person's profile without navigating away.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Hover Card to your project and fits it to your theme.
Code
How Hover Card is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import HoverCard from "@/components/ui/hover-card";
import {
Avatar,
Stack,
Text,
} from "@/components/ui/hover-card-utils/kit-extras";
export default function HoverCardPersonDemo() {
return (
<div
style={{
display: "flex",
alignItems: "center",
justifyContent: "center",
minHeight: 220,
padding: 40,
}}
>
<HoverCard trigger={<Avatar name="Dana Ruiz" />}>
<Stack direction="row" gap={12} align="center">
<Avatar name="Dana Ruiz" size={40} />
<Stack gap={2}>
<Text weight="medium">Dana Ruiz</Text>
<Text size="sm" secondary>
Support lead, on call this week
</Text>
</Stack>
</Stack>
</HoverCard>
</div>
);
}
















