ReferenceMenus
media-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 media-popover element wraps a trigger (first child button) and
popup content (second child). The element manages open/close state and
positioning automatically.
Styling
Use CSS custom properties for positioning offsets:
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}.