Elements

Reference

Hover Card

HoverCard, dressed in the paper-and-ink system: a preview card that dissolves in over a quiet inline link, never stealing focus. The parts — Root, Trigger, Positioner, Content, Arrow, ArrowTip.

Arrow · ArrowTip · Trigger · Positioner · Content

#ArrowTip

A styled part — no props of its own; it takes the anatomy's shared styling.

#Arrow

A styled part — no props of its own; it takes the anatomy's shared styling.

#Content

A styled part — no props of its own; it takes the anatomy's shared styling.

#Positioner

A styled part — no props of its own; it takes the anatomy's shared styling.

#Root

PropTypeDefaultDescription
closeDelaynumber300The duration from when the mouse leaves the trigger or content until the hover card closes.
defaultOpenbooleanThe initial open state of the hover card when rendered. Use when you don't need to control the open state of the hover card.
defaultTriggerValuestring | nullThe initial trigger value when rendered. Use when you don't need to control the trigger value.
disabledbooleanWhether the hover card is disabled
idstringThe unique identifier of the machine.
idsPartial<{ trigger: string; content: string; positioner: string; arrow: string; }>The ids of the elements in the popover. Useful for composition.
openbooleanThe controlled open state of the hover card
openDelaynumber700The duration from when the mouse enters the trigger until the hover card opens.
positioninghoverCard.PositioningOptionsThe user provided options used to position the popover content
triggerValuestring | nullThe value of the trigger that currently open the hover card
EventPayload
exitComplete—
openChangedetails: OpenChangeDetails
update:openopen: boolean
triggerValueChangedetails: TriggerValueChangeDetails
update:triggerValuetriggerValue: string | null
focusOutsideevent: FocusOutsideEvent
interactOutsideevent: InteractOutsideEvent
pointerDownOutsideevent: PointerDownOutsideEvent

#Trigger

PropTypeDefaultDescription
valuestringThe value that identifies this specific trigger