A popup that appears when a link is hovered, showing a preview for sighted users.
Made by imskyleenInstallation
Usage
API Reference
PreviewCard
Base UI API Reference - PreviewCard.Root| Prop | Type | Default |
|---|---|---|
followCursor? | boolean | "x" | "y" | false |
followCursorSpringOptions? | SpringOptions | { stiffness: 200, damping: 17 } |
PreviewCardTrigger
Base UI API Reference - PreviewCard.TriggerPreviewCardPortal
Base UI API Reference - PreviewCard.PortalThe keepMounted property is not supported in the PreviewCardPortal
component, as it is used for animation.
PreviewCardPositioner
Base UI API Reference - Popover.PositionerPreviewCardPopup
Base UI API Reference - PreviewCard.Popup| Prop | Type | Default |
|---|---|---|
transition? | Transition | { type: 'spring', stiffness: 300, damping: 25 } |
...props? | HTMLMotionProps<"div"> | - |
The render property is not supported in the PreviewCardPopup component, as
it is used for animation.
