sopo

Hover Card

Cards 4

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

Dependencies

More by sopo

View all
  • Sheet

    Sheet

    3
  • Animated Select

    Animated Select

  • Animated Tabs

    Animated Tabs

  • Icon Toggle

    Icon Toggle

  • Animated Dialog

    Animated Dialog

More in Cards

View all
  • Course Design Cards

    Course Design Cards

    1.3K
  • Photo Deck

    Photo Deck

    45
  • Folded Card

    Folded Card

    45
  • Statistics Card 2

    Statistics Card 2

    309
  • Statistics Card 7

    Statistics Card 7

    335
  • Statistics Card 10

    Statistics Card 10

    303
  • Interactive Tech Stack Bento Grid with Hover Effects

    Interactive Tech Stack Bento Grid with Hover Effects

    715
  • Product List 01

    Product List 01

    41