Overlays/Hover Card

Hover Card

A floating panel that appears when hovering or focusing a trigger element, after a short delay. Ideal for previews of users, links, or other rich content.

import { HoverCard } from "@animui/ui"

Basic

Placement

Custom delays

Props

PropTypeDefaultDescription
triggerReact.ReactNodeThe element that opens the card on hover or focus.
childrenReact.ReactNodeContent rendered inside the floating card.
openDelaynumber150Milliseconds to wait before opening after hover starts.
closeDelaynumber200Milliseconds to wait before closing after hover ends.
placement"top" | "bottom" | "left" | "right""bottom"Which side of the trigger the card appears on.
classNamestringAdditional classes for the card panel.

Accessibility

  • Opens on keyboard focus and closes on blur, not just mouse hover.
  • Dismissible with the Escape key.
  • Moving the pointer from the trigger onto the card keeps it open.
© 2026 Steal Shadow. MIT License.Report an issue