A small preview card that appears when you hover or focus a link, like a profile preview. Opens after a short delay and Escape closes it.
Install it the shadcn way: copy the source file into your project. It uses CSS 3D, Tailwind CSS v4 and Framer Motion, no WebGL.
| Prop | Type | Default | Description |
|---|---|---|---|
| children | ReactNode | The element that triggers the card. It should be focusable, such as a link or button. | |
| content | ReactNode | Content of the preview card. | |
| openDelay | number | 250 | Delay before the card opens, in milliseconds. |
| closeDelay | number | 150 | Delay before the card closes, in milliseconds. |
| align | "start" | "center" | "end" | "start" | Which edge of the trigger the card lines up with. |
| above | boolean | Show the card above the trigger instead of below. | |
| className | string | Extra classes added to the card. |