kanchanasw

Sketch Hover Card

Cards 26

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>
  );
}

Dependencies

More by kanchanasw

View all
  • Sketch Tabs

    Sketch Tabs

    81
  • Hand-Drawn Checkbox

    Hand-Drawn Checkbox

    48
  • Sketch Textarea

    Sketch Textarea

    38
  • Sketch Button

    Sketch Button

    20
  • Pagination

    Pagination

    6
  • Radial Menu

    Radial Menu

    2
  • Hand-Drawn Progress Bar

    Hand-Drawn Progress Bar

    1
  • Sketch Dropdown Menu

    Sketch Dropdown Menu

    1

More in Cards

View all
  • Course Design Cards

    Course Design Cards

    1.1K
  • Statistics Card 7

    Statistics Card 7

    301
  • Statistics Card 2

    Statistics Card 2

    272
  • Stats cards with links

    Stats cards with links

    82
  • Interactive Tech Stack Bento Grid with Hover Effects

    Interactive Tech Stack Bento Grid with Hover Effects

    183
  • Card Studio

    Card Studio

    35
  • Card

    Card

    70
  • Card

    Card

    18