Hover Card

A preview card that appears when hovering a link.

Assigned to @adapark and due Friday.

Installation

  1. Add the registryOnce per project
  2. Add hover-card

Usage

HoverCardTrigger renders a link. Keyboard, touch and screen reader users can't reach the card, so don't put anything in it that isn't also on the linked page.

Composition

Examples

Delay and placement

delay and closeDelay on HoverCardTrigger set the timing. side and align on HoverCardContent set its position.

Props

The tables leave out className, style and render. Parts built on Base UI take them as its styling and composition guides describe.

HoverCard

HoverCardTrigger

HoverCardContent