Displays a preview image of a link when hovered.
Made by imskyleenInstallation
Usage
API Reference
PreviewLinkCard
Animate UI API Reference - HoverCard Primitive| Prop | Type | Default |
|---|---|---|
href | string | - |
src? | string | - |
width? | number | - |
height? | number | - |
deviceScaleFactor? | number | 1 |
colorScheme? | 0 | light |
followCursor? | boolean | "x" | "y" | false |
followCursorSpringOptions? | SpringOptions | { stiffness: 200, damping: 17 } |
PreviewLinkCardTrigger
| Prop | Type | Default |
|---|---|---|
...props? | React.ComponentProps<'a'> | - |
PreviewLinkCardPortal
PreviewLinkCardContent
| Prop | Type | Default |
|---|---|---|
transition? | Transition | { type: 'spring', stiffness: 300, damping: 25 } |
...props? | HTMLMotionProps<"div"> | - |
PreviewLinkCardImage
| Prop | Type | Default |
|---|---|---|
alt? | string | preview image |
...props? | React.ComponentProps<'img'> | - |
Credits
- Radix UI Hover Card
- Inspired by Aceternity UI Link Preview