Getting StartedInstall and bootstrap headless foundations 4
LayoutHeadless structural primitives for expandable and container patterns 6
OverlayHeadless modal and floating layer behavior 3
FeedbackHeadless notification and status communication patterns 5
FormHeadless input and selection contracts 17
UtilityReusable action, identity, and clipboard behavior 6
NavigationHeadless trails, trees, menus, and command surfaces 7

API reference

Headless Menubar is the primitive navigation surface. You own the markup and panel placement, while the directives handle roving focus, menu handoff, and cross-menu keyboard flow.

tngMenubar

Applies menubar semantics to the host and manages the top-level roving tabindex state across tngMenubarItem descendants.

Primitive composition

html
<div tngMenubar aria-label="Workspace commands">
  <div class="menubar-item-shell">
    <div tngMenu #fileMenu="tngMenu" aria-label="File menu">
      <button type="button" tngMenuItem tngMenuItemValue="Create document">New</button>
    </div>
    <button type="button" tngMenubarItem [tngMenubarMenu]="fileMenu">File</button>
  </div>
</div>
InputTypeDetails
loopbooleanWraps horizontal focus from last item to first and vice versa. Defaults to true.
Host attributesrole, aria-orientation, data-slotEmits role="menubar", horizontal orientation, and data-slot="menubar".

tngMenubarItem

Marks a focusable top-level trigger and links it to an optional owned tngMenu.

Input / AttrTypeDetails
[tngMenubarMenu]TngMenu | nullOwns the menu panel opened by click, Enter, Space, or the open-arrow keys.
tabindex0 | -1Managed by the primitive so only one enabled top-level item is tabbable at a time.
aria-haspopup, aria-controls, aria-expandedReflected attrsAdded automatically when an owned menu exists and updated as the menu opens or closes.
aria-disabled'true' | nullDisables the trigger in roving focus, typeahead, and menu ownership flow.

Keyboard contract

Menubar owns top-level keyboard semantics and coordinates with the owned menu so focus stays predictable when panels open, close, or hand off to adjacent triggers.

Top-level keyboard baseline

text
ArrowLeft / ArrowRight  Move across top-level menubar items
ArrowDown               Open owned menu and focus first enabled item
Home / End              Jump to first / last enabled top-level item
Escape                  Close menu and restore focus to owning trigger
Printable key           Typeahead across enabled top-level item labels