Global attribute - popover

Popover API

Used to designate an element as a popover element.

Concepts and usage

A very common pattern on the web is to show content over the top of other content, drawing the user’s attention to specific important information or actions that need to be taken. This content can take several different names — overlays, popups, popovers, dialogs, etc. We will refer to them as popovers through the documentation. Generally speaking, these can be:

Popovers created using the Popover API are always non-modal. If you want to create a modal popover, a

element is the right way to go.

Typical use cases for the popover API include user-interactive elements like action menus, custom “toast” notifications, form element suggestions, content pickers, or teaching UI.

A related feature — interest invokers — can be used to show popovers on hover/focus, without requiring JavaScript.

Popover elements are hidden via display: none
until opened via an invoking/control element (i.e.
a