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
Type
Default
Modified Defaults
Our implementation changes the following Base UI prop defaults:
- PreviewCardTrigger:
delaydefaults to0(Base UI defaults to600) - PreviewCardTrigger:
closeDelaydefaults to0(Base UI defaults to300) - PreviewCardContent:
aligndefaults to"center"(Base UI defaults to"start") - PreviewCardContent:
sideOffsetdefaults to8(Base UI defaults to0)