About
A hover-triggered popover card with a hand-drawn, rough.js-sketched border and shadow, built on Radix UI's hover card primitive for showing extra details (e.g. a profile preview) when a trigger element is hovered.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Sketch Hover Card to your project and fits it to your theme.
Code
How Sketch Hover Card is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import {
HoverCard,
HoverCardTrigger,
HoverCardContent,
} from "@/components/ui/hover-card";
import { Button } from "@/components/ui/button";
export default function HoverCardDemo() {
return (
<div className="flex min-h-[220px] w-full items-center justify-center bg-background p-10 text-foreground">
<HoverCard>
<HoverCardTrigger asChild>
<Button variant="outline">Hover</Button>
</HoverCardTrigger>
<HoverCardContent>Details</HoverCardContent>
</HoverCard>
</div>
);
}
















