ReferenceMenus
Popover
A popover component for displaying contextual content anchored to a trigger
Import
Anatomy
Behavior
Displays contextual content anchored to a trigger element. By default, opens on click and closes when clicking outside, pressing Escape, or when the trigger loses focus.
Set openOnHover to open on pointer hover instead of click. Use delay and closeDelay to control timing for hover interactions.
Popovers inside a player container join its popup group. Opening one closes any other popover or root menu that is open in the same container. A popover outside the container still opens and closes normally, but it is not coordinated with that group.
The side and align props control the preferred popup placement relative to the trigger. When the preferred side overflows the positioning boundary, the popup uses the opposite side if it has more space.
The component is composed from four parts: Root manages state,
Trigger toggles the popover, Popup contains the content, and Arrow
renders a directional arrow.
Styling
Use CSS custom properties for positioning offsets:
React renders standard DOM elements. Add a className to style them:
Style based on open state, rendered side, and transition phases. data-side reflects the rendered side and can differ from the preferred side prop after collision handling:
Accessibility
The trigger receives aria-expanded reflecting the open state. When modal is set, the popup receives aria-modal="true". Closing via Escape is enabled by default and can be disabled with closeOnEscape={false}.
Examples
Basic Usage
API Reference
Root
Props
State
render, className, and style props.
Data attributes
CSS custom properties
Arrow
Decorative arrow pointing from the popup toward the trigger. Hidden from assistive technology.