GitHub

Popup

Low-level positioned container anchored to an element.

<rhx-popup>

Examples

Positioned Container

With Arrow

Properties

Property Type Default Description
rhx-anchor string - CSS selector of the anchor element
rhx-placement string bottom Position: top, bottom, left, right, bottom-start, bottom-end, top-start, top-end, left-start, left-end, right-start, right-end
rhx-arrow bool false Show a directional arrow element

Accessibility

  • rhx-popup is a low-level positioning utility; consumers should add appropriate ARIA roles and attributes based on their use case.
  • For menus, add role="menu" and connect to the trigger with aria-controls.
  • For tooltips or dialogs, use the higher-level rhx-popover or rhx-tooltip components instead.
  • Ensure keyboard users can dismiss the popup (e.g., with Escape) and that focus is managed appropriately.