ReferenceMenus
VolumePopover
A volume-aware popover that keeps mute available when volume level controls are unavailable
Import
Anatomy
Behavior
VolumePopover combines popover behavior with volume availability. When volume level controls are unavailable, it closes and omits the popup while keeping the mute trigger rendered. This lets media with fixed volume keep mute control without exposing a nonfunctional slider.
Styling
The popup reflects data-availability="available" while it can render volume controls.
React renders the popup as a standard <div>. Add a className to select it:
Accessibility
The trigger receives aria-haspopup, aria-expanded, and aria-controls while the volume popup is available. When only mute is available, the trigger keeps the mute button’s own accessible name and behavior without popup ARIA.