Search documentation

Find a component or a docs page

Hover Card

For sighted users to preview content available behind a link.

Usage

Example

Side and delay

side: and align: place the card around the trigger. side_offset: is the gap between them, and align_offset: shifts the card along the trigger's edge. delay: is how long the pointer rests on the trigger before the card opens, and close_delay: how long after it leaves before the card closes, in milliseconds (600 and 300 by default).

Inside a clipping container

The card opens in the top layer, so a container that hides its overflow (a scroll area, a table cell, a truncating container) doesn't clip it.

Installation

Components

ComponentBuilt usingSource
HoverCardPhlex
HoverCardContentPhlex
HoverCardDocsPhlex
HoverCardTriggerPhlex
HoverCardControllerStimulus JS