Theme
Install with your agentnpx shadcn@4.23.1 add https://registry.goop.so/g/<link>/meadow-hover-card.json --yes

Hover card

Pro

A small card previewing a person or a record while the pointer rests on its name, for React and Tailwind CSS. Part of Goop Pro.

When to use

  • A small card previewing a person or a record while the pointer rests on its name.

When not to use

  • For one line about a button use Tooltip.

Installation

Paste the prompt below into your coding agent. It reads Goop's install steps, installs the part and its tokens once, then reuses this same Hover card on every screen instead of drawing a new one: the same height, the same focus ring, the same spacing. As a Pro part, its command comes from Goop's server once you sign in, with a one-time link that lasts ten minutes.

Terminal
npx shadcn@4.23.1 add https://registry.goop.so/g/<link>/meadow-hover-card.json --yes
PROMPT
Add the Goop Hover card to this project. The install steps are at https://goop.so/docs/install.md

Usage

TSX
import { Avatar } from '@/components/ui/goop/avatar';
import { HoverCard, HoverCardContent, HoverCardPerson, HoverCardTrigger } from '@/components/ui/goop/hover-card';
import { Link } from '@/components/ui/goop/link';

function MemberName() {
  return (
    <HoverCard>
      <HoverCardTrigger asChild>
        <Link variant="plain" href="/members/ngozi-ilori">
          Ngozi Ilori
        </Link>
      </HoverCardTrigger>
      <HoverCardContent>
        <HoverCardPerson
          name="Ngozi Ilori"
          description="Design lead"
          meta="Lagos · 14:20 local"
          avatar={
            <Avatar variant="solid" size="lg" hue="green">
              NI
            </Avatar>
          }
        />
      </HoverCardContent>
    </HoverCard>
  );
}
  • Also known as: PreviewCard, ProfileCard, UserCard, LinkPreview, Hovercard.
  • Wrap a person's or a record's link in a HoverCard to preview it on hover or focus, with HoverCardPerson for a person; keep every fact on the linked page too, and no control in the card.
  • height, width, padding, gap, corner, background, text, motion: add no class for these.

API reference

Options
OptionTypeWhat it does
DefaultsdefaultOpen = false; openDelay = 600; closeDelay = 200
Parts
PartWhat it is
HoverCardTriggerWhat the card previews; takes asChild
HoverCardContentThe card; container?: HTMLElement | null — Where the card is portalled; the end of <body> when left out
HoverCardPersonA person in the card, as the account menu shows one; name: ReactNode — The person's name; description?: ReactNode — A line under the name: their role or their email; avatar?: ReactNode — Their picture or initials: the theme's Avatar, variant="solid" size="lg"; meta?: ReactNode — A line under the description: their team, their local time; children?: ReactNode — Anything else, 8 px under the person's lines
  • data-slot values (to select a part by): hover-card-content, hover-card-person, hover-card-person-caption, hover-card-person-content, hover-card-person-description, hover-card-person-head, hover-card-person-media, hover-card-person-title, hover-card-trigger

Keyboard

KeyWhat it does
TabOnto the trigger (the caller's link): the card opens after the delay; off it, the card closes
EscapeClose the card at once; it stays closed while the pointer rests on the trigger
EnterFollow the link, as the link always does

Accessibility

  • The behaviour layer under the part answers keys, focus and dismissal: never write your own.

Its states are drawn from attributes and props, so assistive technology and your agent read the same thing:

StateDrawn by
openthe attribute data-state=open

Motion

  • The part sets its own motion: add no transition or animation of your own.

Notes for AI

Give your coding agent this page as text instead of screenshots: the parts, the options, the states and the keys. An agent that reads the real part builds the real part, not a lookalike.

goop.so/themes/meadow/components/hover-card.md · the page as Markdown
Theme
Install with your agentnpx shadcn@4.23.1 add https://registry.goop.so/g/<link>/meadow-hover-card.json --yes

Where would you like to start?

Free · now

The Goop plugin

A design system for your AI coding agent, so screen ten matches screen one.

/plugin marketplace add goop-so/skillsthen /plugin install goop@goopCodex, Cursor, ChatGPT, the Claude app and more: Connect Goop
FreePro

The components

Every part live, with its props, its keys and what an agent sees. Whole page and app templates, working with sample data.