Hover Card

For sighted users to preview content available behind a link or element on hover. Unlike popovers, hover cards are triggered by mouse hover and are ideal for supplemental information.

@shadcn
@shadcn

Installation

CLI

Install the component using the StarUI CLI:

star add hover-card

Examples

Repository Preview

Repository metadata card triggered from a link

Inline Link

Hover card on a link within flowing paragraph text

The component system is built on top of

, a modern Python web framework with reactive components and server-side rendering.

Positioning

Control placement with the side and align props

API Reference

Component Description
HoverCard Container that manages open state for trigger and content on hover
HoverCardTrigger Element that opens/closes the hover card based on mouse enter/leave, with delays
HoverCardContent The floating content positioned relative to its trigger with side and alignment controls