Getting StartedInstallation and setup guides 5
LayoutWorkflow and structural layout components 7
OverlayModal and floating layer surfaces 3
FeedbackStatus, empty, progress, and loading placeholder patterns 5
FormInput and selection components 17
UtilityGeneral-purpose interface utilities 7
NavigationMenu surfaces and hierarchical actions 7

API reference

Context Menu composes menu primitives with a dedicated trigger directive for right-click and keyboard context invocation. The exported tngContextMenu instance also exposes anchor state so owners can choose their own placement strategy.

Wrapper APIs

Element / DirectiveInput / OutputTypeDescription
<tng-context-menu>ariaLabelstringAccessible label for the context panel.
<tng-context-menu>loop, disabled, closeOnSelectbooleanForwards core menu traversal, disable state, and select-close behavior.
<tng-context-menu>dismissOnOutsideClick, dismissOnFocusoutbooleanDismiss policy applied to the hosted menu panel.
<tng-context-menu>tngMenuOpened, tngMenuClosed, tngMenuSelectEventEmitterLifecycle and selection outputs from the underlying menu primitive.
[tngContextMenuTrigger]tngContextMenuTriggerTngContextMenuBinds a target element to a context-menu instance.

Primitive directives

DirectivePurposeNotes
tngContextMenuConnects context trigger semantics to a menu panel host.Applied together with tngMenu on the menu surface.
tngContextMenuTriggerListens for contextmenu, Shift + F10, and ContextMenu.Sets data-slot="context-menu-trigger", aria-haspopup, aria-controls, and aria-expanded.
tngMenu, tngMenuItemMenu state, keyboard traversal, selection, submenu composition.Shared primitive contract with menu and menubar docs.

Exported Instance

MethodTypeDescription
isOpen()booleanCurrent open state for the linked context menu.
close(restoreFocus)(restoreFocus: boolean) => voidCloses the panel and optionally restores focus to the trigger target.
getAnchorType()'pointer' | 'element' | nullTells whether the current open came from right-click coordinates or keyboard context invocation.
getPointerAnchor()TngContextMenuPointerAnchor | nullViewport client coordinates captured during right-click open. Returns null for keyboard opens.

Keyboard contract (high level)

  • Shift + F10 or ContextMenu opens for focused target.
  • ArrowDown/ArrowUp moves active action.
  • Home/End jumps to first and last enabled actions.
  • Enter/Space activates highlighted action.
  • Escape closes the active context panel and restores trigger focus.