Examples
Reference patterns for trigger wiring, command groups, nested submenu behavior, and public-state styling hooks.
Action menu variants
Open with click or Enter/Space, then traverse options with Arrow keys.
Wrapper action menu (plain CSS)
last command: No command yet
Wrapper action menu (tailwind shell)
last command: No command yet
Button trigger
Use tng-button as the menu trigger. [tngMenuTriggerFor] wires open/close, keyboard support, and ARIA state on the button host.
tng-button menu trigger (plain CSS)
last command: No command yet
tng-button menu trigger (tailwind shell)
last command: No command yet
State-driven styling hooks
Style wrapper menus through public attributes like aria-expanded, data-state, data-active, and aria-disabled without reaching into private DOM.
Wrapper state styling (plain CSS)
last styled command: No command yet
Wrapper state styling (tailwind shell)
last styled command: No command yet
Cascaded submenu example
Nested submenu wiring with [tngMenuItemSubmenu]. Use ArrowRight on the active parent option to enter deeper levels.
Wrapper cascaded menu (plain CSS)
last cascaded command: No command yet
Wrapper cascaded menu (tailwind shell)
last cascaded command: No command yet