sopo

Hover Card

Cards

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 in Cards

View all
  • Stats cards with links

    Stats cards with links

    129
  • Course Design Cards

    Course Design Cards

    1.2K
  • Card

    Card

    71
  • Statistics Card 7

    Statistics Card 7

    314
  • Statistics Card 2

    Statistics Card 2

    293
  • Interactive Tech Stack Bento Grid with Hover Effects

    Interactive Tech Stack Bento Grid with Hover Effects

    456
  • The Item one

    The Item one

    3
  • Card Studio

    Card Studio

    8