A
Auralix UI

HoverCard

Rich hover preview card with delay support.

Preview

@johndoe

Installation

bash
npx auralix-ui add hover-card

Usage

Hover Preview

tsx
import { HoverCard, HoverCardContent } from "@/components/ui/HoverCard";

<HoverCard trigger={<span>@username</span>}>
  <HoverCardContent 
    title="John Doe" 
    subtitle="@johndoe"
    stats={[{ label: "Followers", value: 1234 }]}
  />
</HoverCard>

Props

NameTypeDefaultDescription
triggerReactNode-Element that triggers the card.
childrenReactNode-Card content.
side"top" | "bottom" | "left" | "right""bottom"Position.
openDelaynumber200Delay before opening (ms).