Components

Preview Card

Interactive card that displays content preview on hover or click

Preview

Installation

Usage

Examples

Simple

Minimal preview card with basic content.

Product Preview

Display product information in preview card.

Text Trigger

Trigger preview from inline text.

API Reference

The PreviewCard component is built on top of Base UI's PreviewCard. All Base UI props are supported. The documentation below only covers custom props and modified defaults specific to our implementation.

For the complete Base UI API, see the Base UI PreviewCard documentation.

Custom Props

PreviewCardContent

Prop

Modified Defaults

Our implementation changes the following Base UI prop defaults:

  • PreviewCardTrigger: delay defaults to 0 (Base UI defaults to 600)
  • PreviewCardTrigger: closeDelay defaults to 0 (Base UI defaults to 300)
  • PreviewCardContent: align defaults to "center" (Base UI defaults to "start")
  • PreviewCardContent: sideOffset defaults to 8 (Base UI defaults to 0)