kanchanasw

Sketch Hover Card

Cards 53

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

    145
  • Hand-Drawn Checkbox

    Hand-Drawn Checkbox

    78
  • Sketch Textarea

    Sketch Textarea

    68
  • Sketch Button

    Sketch Button

    29
  • Pagination

    Pagination

    12
  • Radial Menu

    Radial Menu

    7
  • Radial Progress

    Radial Progress

    4
  • Sketch Prompt Input

    Sketch Prompt Input

    3

More in Cards

View all
  • Course Design Cards

    Course Design Cards

    1.3K
  • Card

    Card

  • Photo Deck

    Photo Deck

    42
  • Statistics Card 10

    Statistics Card 10

    301
  • Approval Card

    Approval Card

    33
  • Statistics Card 2

    Statistics Card 2

    309
  • Card with Ellipsis Pattern

    Card with Ellipsis Pattern

    36
  • Statistics Card 7

    Statistics Card 7

    334