Pickers & inputs JS behaviour

Hover card

A rich preview on hovering a link or keyboard focus; open and close delays, and it stays open while the pointer is inside the card.

Real scenarios

The component as it is used in a product — not a specimen grid.

Design review thread

Reza Karimi

Looks good. Can @emma Emma CarterDesign lead · Istanbul Owns the motion system and the RTL review checklist. 128 reviews36 components check the spacing in #482 Ready to merge #482 Bottom sheet: snap points and flick to dismiss +412 −38 · 3 approvals · checks passing before we ship?

On a phone the links just navigate — hover cards are an extra, never the only way in.

Important props

Important props
Prop Type Default What it does
trigger (slot) slot — What you hover — usually a link that works on its own (touch never opens the card).
open-delay / close-delay int 500 · 250 Open and close delays (ms).
side / align string bottom · center Side and alignment; it flips when there is no room.

Snippet

<x-nx::hover-card>
    <x-slot:trigger><a href="/u/sara">@sara</a></x-slot:trigger>
    …avatar, bio, stats…
</x-nx::hover-card>