StacklyUI
Components/Hover Card

Hover Card

A preview card shown on hover — great for profiles and links.

01

Preview & playground

Edit the code — the preview updates live. Try changing props, text, or classes.

playground.tsx
render(
  <HoverCard>
    <HoverCardTrigger asChild><Button variant="link">@stacklyui</Button></HoverCardTrigger>
    <HoverCardContent>
      <div className="flex items-center gap-3">
        <Avatar><AvatarFallback>SB</AvatarFallback></Avatar>
        <div><p className="font-semibold text-fg">StacklyUI</p><p className="text-sm text-muted">Animated, accessible React components.</p></div>
      </div>
    </HoverCardContent>
  </HoverCard>
)
02

Installation

Copy the source into your project with the registry CLI:

$pnpm dlx shadcn@latest add @stacklyui/hover-card

Or install the package and import it:

$pnpm add @stacklyui/ui motion
03

Usage

Import HoverCard from "@stacklyui/ui" and compose it as shown in the playground above. Every interactive primitive is built on Radix, so keyboard navigation, focus management, and ARIA are handled for you.