Skip to content

Preview Card

Displays an informative preview card when users hover over a link, giving them a summary of the linked page before clicking.

2.8 KB
•
Updated on August 21, 2026

Installation

Bash

Usage

Code
Code

API Reference

PreviewCard

Root component. Alias for PreviewCard.Root from Base UI.

PreviewCardTrigger

Trigger element that shows the preview card on hover. Alias for PreviewCard.Trigger from Base UI.

PreviewCardPopup

Popup container that displays the preview content. Also exported as HoverCardContent.

PreviewCardPortal / PreviewCardPositioner / PreviewCardArrow / PreviewCardBackdrop

Primitive sub-components for custom positioning, arrows, backdrops, and portal rendering.

Aliases

PreviewCard, PreviewCardTrigger, and PreviewCardPopup are also exported as HoverCard, HoverCardTrigger, and HoverCardContent.