A reusable, accessible popup menu. Positions itself relative to an anchor point or element,
handles keyboard navigation (arrows, Enter/Space, Escape/Tab), focus management, and
outside-click dismissal. Portals itself into container (default: the document body).
For fire-on-event usage (e.g. a right-click context menu) see showPopupMenu, which
mounts this component imperatively and returns a hide handle.
A reusable, accessible popup menu. Positions itself relative to an anchor point or element, handles keyboard navigation (arrows, Enter/Space, Escape/Tab), focus management, and outside-click dismissal. Portals itself into
container(default: the document body).For fire-on-event usage (e.g. a right-click context menu) see showPopupMenu, which mounts this component imperatively and returns a hide handle.