Build items with unique keys and readable labels. children creates an inline group; separator creates a divider, visible:false removes an entry and disabled prevents activation. icon resolves through your application icon provider. badge and shortcut add compact context; shortcut is a visual hint, not a registered keyboard shortcut.
These inputs require a model or function, not a checkbox. Edit the same-named field in the Source component and bind it in the template; data already used by this preview appears in the state above.
Use activate(item) to trigger an action from your application. An enabled leaf runs its optional command and emits itemClick; a branch changes expansion instead. Disabled, hidden and separator entries cannot be activated.
Set expandedKeys and accept expandedKeysChange to control the open groups. Omit expandedKeys to use local expansion; inline groups initially expand. Activating a leaf calls its optional command and emits itemClick. Branch activation only proposes expansion. Use a command or itemClick to connect an action to application behavior, including navigation. activate(item) exposes the same guarded action flow for programmatic activation.
Tab enters the action list. Up/down, Home/End and typeahead move focus through available items. Enter/Space activate a leaf; left/right expand, enter or return from a group according to text direction. Hidden entries, separators and disabled actions are excluded from keyboard navigation. Custom Templates replace item content, not its native interactive wrapper.
Key
Action
Tab
Enter or leave the available menu actions.
ArrowUp / ArrowDown
Move through available actions in the current level.
ArrowRight / ArrowLeft
Enter or return from a submenu; directions reverse in RTL.
Home
Focus the first available action in the level.
End
Focus the last available action in the level.
Enter
Activate the focused enabled action or open its group.
Space
Activate the focused enabled action or open its group.
AโZ
Find available actions by their label.
Escape
Close the deepest open submenu; a popup restores trigger focus.
Emits the activated leaf/action. The optional command runs first; disabled entries do not activate.
Templates
ng-content projects content into the component. TemplateRef inputs receive a template; ng-template directives identify templates with a typed context. A directive shared by an entrypoint is not necessarily a slot of this component.
Use supported public tokens for the component. Icon resolution and surrounding example layout belong to the application. Check both themes and narrow screens.
Specific tokens
This component uses shared theme tokens rather than dedicated component hooks.
Shared tokens used
Override these on a local wrapper to affect this example. An override on :root affects other components that use the same token.
Token
Purpose here
Other impact
Default / fallback
--neu-border
Normal control and cell borders
Shared by other Core consumers; scope the override.
rgba(15, 23, 42, 0.08)
--neu-surface
Main field, header or control surface
Shared by other Core consumers; scope the override.
#ffffff
--neu-surface-2
Secondary surfaces and alternating rows
Shared by other Core consumers; scope the override.
#f1f5f9
--neu-text
Main text and inherited icon color
Shared by other Core consumers; scope the override.
#0f172a
--neu-text-muted
Secondary labels and supporting content
Shared by other Core consumers; scope the override.
#475569
--neu-shadow-lg
Surface or overlay elevation
Shared by other Core consumers; scope the override.