Component libraryHover card
Hover card
ProAn informational profile preview with hover, keyboard focus and phone tap access, plus a persistent screen-reader description.
npx shadcn@latest add @tidal-pro/hover-cardInstallation
Pro source is gated. Configure the @tidal-pro registry using the agent guide. Create an access key from your account after purchasing.
Terminal
Import components/ui/tidal.css, components/ui/hover-card.css, then add the component inside a tidal-scope wrapper. Its scoped design tokens keep it independent of your existing CSS.
Usage
Complete example source · Dependency and asset manifest
Loading the complete example…
API & behavior
accessibleDescription and children are required. TidalHoverCard forwards controlled or uncontrolled Radix open state, delays and onOpenChange while adding portal theme and direction. The always-mounted accessibleDescription is combined with any native trigger aria-describedby value so the informational preview has a keyboard and screen-reader equivalent even while visually closed. TidalHoverCardTrigger renders a 44px native type=button with native attributes/ref, generated aria-controls and controlled aria-expanded; disabled or aria-disabled true resolve native disabled behavior and explicit false is preserved. Radix supplies hover/focus opening, pointer grace, Escape/outside dismissal and positioning. Caller-first unprevented button activation opens immediately. A stationary touch toggles only on touch end; movement over 10px or cancellation clears the intent, and the matching synthetic click is suppressed. TidalHoverCardContent forwards content attributes/ref, collision/side/alignment and caller-preventable dismissal events, accepts an optional portalContainer and arrow, and is viewport bounded with internal scrolling. Content is informational because Radix removes descendants from the tab order; use another overlay for interactive controls. Consumers own all content and state. The component performs no navigation, profile, account, network, storage or backend action.
Style with the --t-* CSS variables. Set data-theme="dark" on your tidal-scope wrapper for a dark surface. Motion respects the system’s reduced-motion preference.