Zephora UI

Data

HoverCard

Rich hover popover that stays open while the pointer is over the card; the trigger also opens it on keyboard focus.

Import

import { HoverCard } from "@zephora/react";

Examples

Profile preview

Custom delays and placement

`openDelay` and `closeDelay` tune how forgiving the hover interaction is.

API

HoverCard props

PropTypeDefaultDescription
content *ReactNodeRich interactive content shown inside the card.
children *ReactElementSingle trigger element; handlers are cloned onto it.
placementPlacement"bottom"Preferred side / alignment relative to the trigger.
openDelaynumber300Delay in ms before opening on hover.
closeDelaynumber200Delay in ms before closing after the pointer leaves.
showArrowbooleanfalseRenders a small arrow pointing at the trigger. The card and arrow expose the resolved side via a data-side attribute for CSS targeting.
open / defaultOpen / onOpenChangeboolean / boolean / (open: boolean) => voidControlled and uncontrolled open state.
classNamesPartial<Record<"root" | "arrow", string>>Per-slot class overrides: root targets the floating card (alongside className), arrow the arrow element. Applied after module classes and also in unstyled mode.
unstyledbooleanfalseHeadless mode — skips Zephora styling.