Hover Card

For sighted users to preview content available behind a link.

Usage

Example

Escaping a clipping ancestor

The card is positioned absolutely by default, so a positioned ancestor that hides its overflow — a scroll area, a table cell, a truncating container — clips it. The fixed strategy positions the card against the viewport instead, so it escapes.

Installation

Components

ComponentBuilt usingSource
HoverCardPhlex
HoverCardContentPhlex
HoverCardDocsPhlex
HoverCardTriggerPhlex
HoverCardControllerStimulus JS