Installation
pnpm dlx shadcn add @eased-pro/hover-cardnpx shadcn add @eased-pro/hover-cardyarn dlx shadcn add @eased-pro/hover-cardbunx --bun shadcn add @eased-pro/hover-cardInstalls from the @eased-pro registry and MCP server. · Already have Pro? Sign in.
Install the dependencies
pnpm add @base-ui/reactnpm install @base-ui/reactyarn add @base-ui/reactbun add @base-ui/reactAdd the Eased pieces it builds on
Copy each item’s files the same way, or install them with the CLI:
Add the files
- components/eased/hover-card/hover-card.tsx
Source is included with Eased Pro. Members download the files with the CLI command above, or through the MCP server.
Keep the folder layout
The files import each other by relative path (
../lib/motion), so keep each one at the path shown, undercomponents/eased/.
Usage
import { HoverCard, HoverCardTrigger, HoverCardContent } from "@/components/eased/hover-card/hover-card";import { Avatar } from "@/components/eased/avatar/avatar";<HoverCard> <HoverCardTrigger variant="mention" href="/people/mara">@mara</HoverCardTrigger> <HoverCardContent> <Avatar name="Mara Lindqvist" src="/mara.jpg" size="xl" /> … </HoverCardContent></HoverCard>The card is hidden from screen readers by design: keep its content supplementary and available at the link's destination. Give the trigger an href so it is focusable; keyboard focus opens the card too.
Props
HoverCard: Base UIPreviewCard.Root(open,defaultOpen,onOpenChange…).HoverCardTrigger: renders an<a>.variant:"link"(default, underlined),"mention"(an @-chip) or"unstyled";delay(300),closeDelay(300).HoverCardContent:side("bottom"),align("start"),sideOffset(8),alignOffset,motion,container,zIndex(50),className(defaultw-72).