kanchanasw

Sketch Hover Card

Cards 15

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

    52
  • Hand-Drawn Checkbox

    Hand-Drawn Checkbox

    40
  • Sketch Textarea

    Sketch Textarea

    21
  • Sketch Button

    Sketch Button

    20
  • Pagination

    Pagination

    5
  • Radial Menu

    Radial Menu

    1
  • Hand-Drawn Progress Bar

    Hand-Drawn Progress Bar

    1
  • Stepper

    Stepper

More in Cards

View all
  • Statistics Card 2

    Statistics Card 2

    264
  • Course Design Cards

    Course Design Cards

    1.1K
  • Card

    Card

    70
  • Stats cards with links

    Stats cards with links

    39
  • The Item one

    The Item one

    3
  • Card Studio

    Card Studio

    7
  • Statistics Card 7

    Statistics Card 7

    292
  • Item

    Item

    10