About
A popover that shows extra preview content, like a profile summary or link preview, when a user hovers over a trigger element.
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
"use client";
import {
HoverCard,
HoverCardContent,
HoverCardTrigger,
} from "@/components/ui/hover-card";
export default function HoverCardDemo() {
return (
<div className="flex items-center justify-center p-10">
<HoverCard>
<HoverCardTrigger
href="#"
className="font-medium text-sm underline-offset-4 hover:underline"
>
@shadcn-animated
</HoverCardTrigger>
<HoverCardContent>
<div className="flex flex-col gap-1">
<p className="text-sm font-semibold">shadcn animated</p>
<p className="text-sm text-muted-foreground">
An expanding collection of animated shadcn/ui components, built on
Base UI and Motion.
</p>
</div>
</HoverCardContent>
</HoverCard>
</div>
);
}








