Leave Yamada UI a star

Star
Yamada UIYamada UIv1.7.2

Popover

Popover is a small floating window that displays information or actions related to a specific element. It is triggered by buttons or links and appears when the user clicks or hovers over them.

Popover follows the WAI-ARIA - Dialog (Modal) Pattern for accessibility.

Keyboard Navigation

When the Popover opens, focus is trapped within it. That is, you cannot focus on elements outside the popover unless the popper is closed.

KeyDescriptionState
TabFocuses the next element within the popover that is not disabled. If it's the first element, the popover is closed.isOpen={true}
Shift + TabFocuses the next element within the popover that is not disabled. If it's the first element, the popover is closed.isOpen={true}
EscapeCloses the popover.isOpen={true} + closeOnEsc={true}

ARIA Roles and Attributes

ComponentRoles and AttributesUsage
PopoverContentrole="dialog"Indicates that it is a dialog.
aria-labelledbySets the id of the associated PopoverHeader.
aria-describedbySets the id of the associated PopoverBody.
aria-hiddenSets to "true" when popover is opened, and "false" when it is closed.
PopoverTriggerrole="button"Indicates that it is a button.
aria-expandedSets to "true" when popover is opened, and "false" when it is closed.
aria-controlsSet to PopoverContent's id when popover is opened, and undefined when it is closed.
PopoverCloseButtonaria-label="Close popover"Sets "Close popover" as the label.
aria-controlsSets the id of PopoverContent.
PopoverHeaderidUsed to associate with PopoverContent.
PopoverBodyidUsed to associate with PopoverContent.

Edit this page on GitHub

PreviousActionBarNextTooltip