About the shadcn/ui Hover Card Component
The Hover Card component is part of shadcn/ui — a collection of accessible, copy-paste React components built with Radix UI and Tailwind CSS. Install it with `npx shadcn@latest add hover-card` and copy it directly into your project.
Hover Card Component — Frequently Asked Questions
How do I add a delay before showing a shadcn HoverCard?
Add `openDelay={500}` and `closeDelay={300}` to `<HoverCard>`. Values are in milliseconds. A slight delay prevents accidental triggers while scanning.
What content should I put in a shadcn HoverCard?
HoverCards work best for user profiles, link previews, and contextual info. Include an avatar, name, bio, and metadata. Keep it under 250 words to avoid overwhelming users.
How is HoverCard different from Tooltip?
Tooltip shows short text hints. HoverCard shows rich interactive-like content (images, formatted text, multiple data points) triggered on hover. HoverCard content can be selected/copied.