Hover card

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.

HoverCard3D props

PropTypeDefaultDescription
childrenReactNodeThe element that triggers the card. It should be focusable, such as a link or button.
contentReactNodeContent of the preview card.
openDelaynumber250Delay before the card opens, in milliseconds.
closeDelaynumber150Delay before the card closes, in milliseconds.
align"start" | "center" | "end""start"Which edge of the trigger the card lines up with.
abovebooleanShow the card above the trigger instead of below.
classNamestringExtra classes added to the card.

More components

Guides

Start

Cards

Scenes

Controls & text

Buttons

More cards

UI elements

Form controls

App components

Text & backgrounds

Showpieces

Blocks