Skip to content
Twentyfirst UIHalo

Hover Card

Overlays · HoverCard, Avatar, Badge

View as Markdown

A preview card that opens when the pointer rests on a trigger (a name, a link) or when it gets keyboard focus, and closes when the pointer or focus leaves or on Escape.

  • Use it for supplementary details only; the trigger must still lead somewhere on its own.
  • openDelay and closeDelay tune the timing; the card stays inside the screen on narrow layouts.

Assigned to @mara by the pricing workflow. Hover or focus the name to see the card.

Props

HoverCard

PropTypeNotes
triggerReactNodeThe element that opens the card on hover and keyboard focus.
children?ReactNode
side?"top" | "bottom"
align?"start" | "center" | "end"
openDelay?number
closeDelay?number
width?number
className?stringExtra class on the root element.
style?CSSPropertiesInline style on the root element.

Avatar

PropTypeNotes
namestringRequired
src?string
size?number
tint?Tint | "surface-sunken"
className?stringExtra class on the root element.
style?CSSPropertiesInline style on the root element.

Badge

PropTypeNotes
tone?Tone
dot?boolean
live?boolean
children?ReactNode
className?stringExtra class on the root element.
style?CSSPropertiesInline style on the root element.