Beta
Animate UI

Preview Card

A popup that appears when a link is hovered, showing a preview for sighted users.

Made by imskyleen

Installation

Usage

<PreviewCard>
  <PreviewCardTrigger>Hover me</PreviewCardTrigger>
  <PreviewCardContent>Preview card content</PreviewCardContent>
</PreviewCard>

Props

Animate UI Props

PreviewCardContent

PropTypeDefault
transition?
Transition
{ type: "spring", stiffness: 300, damping: 25 }
popupProps?
typeof PopoverPrimitive.Popup
-
motionProps?
HTMLMotionProps<'div'>
-
positionerClassName?
string
-

Credits

  • We use Base UI for the preview card component.
  • We take our inspiration from Shadcn UI for the preview card style.

Built by Skyleen. The source code is available on GitHub.

On this page