Getting Started
Foundations
Components
Search for a command to run...
Hover cards (also called preview cards) provide contextual information about an element without requiring a click. They're commonly used to show user profiles when hovering over avatars or usernames, preview links, or display additional details about items in a list. Unlike tooltips which show brief text, hover cards can contain rich formatted content including images, headings, and interactive elements.
Built on top of Radix UI's HoverCard primitive with configurable hover delays, automatic positioning with collision detection, focus management, and accessibility support including proper ARIA attributes.
import { HoverCard } from "@strongtie/design-system/hover-card"This module exports the following components:
HoverCardHoverCardTriggerHoverCardContentAll components extend Radix UI primitives. See the Radix UI documentation for all available props.
Components can be styled using the className prop. The design system uses Tailwind CSS for styling.
The following data attributes are used to identify component parts:
hover-cardhover-card-contenthover-card-portalhover-card-triggerOther CSS classes used by this component:
hover-card-contentThis component inherits accessibility features from Radix UI, including: