ArtificialSenseDocs

Docs / Components

SenseContextMenuComponent

Popup menu positioned at pointer coordinates for right-click or custom triggers from @artificialsenselabs/ui.

Live demo: run nx serve showcase and open /components/context-menu (port 4202).

Overview

Category: Navigation. Selector: sense-context-menu. Import: import { SenseContextMenuComponent } from '@artificialsenselabs/ui';

Accessibility

  • Menu panel exposes role="menu" with configurable ariaLabel.
  • Items use role="menuitem" with roving tabindex, arrow/Home/End keys, and first-character typeahead. Disabled items stay discoverable via aria-disabled.
  • Call show(event) from a contextmenu handler, or from Shift+F10 / the Context Menu key on a focusable target. Focus moves into the menu on open and returns to the trigger on close; the panel also dismisses on outside click or Escape.