Menu
A list of actions that opens from a button.
Menu follows the Menu Button WAI-ARIA design pattern.
import { $, component$, useSignal, useStyles$ } from '@builder.io/qwik';
import { Menu } from '@leve-ui/menu';
import { LuChevronDown } from '@qwikest/icons/lucide';
import styles from './default.css?inline';
export default component$(() => {
useStyles$(styles);
const last = useSignal('Nothing yet');
const select$ = $((action: string) => {
last.value = action;
});
return (
<div class="menu-default">
<Menu.Root>
<Menu.Trigger class="menu-default-trigger">
Actions
<LuChevronDown class="menu-default-chevron" aria-hidden="true" />
</Menu.Trigger>
<Menu.Content sideOffset={4} class="menu-default-content">
<Menu.Item onSelect$={() => select$('New file')} class="menu-default-item">
New file <span class="menu-default-shortcut">⌘N</span>
</Menu.Item>
<Menu.Item onSelect$={() => select$('Duplicate')} class="menu-default-item">
Duplicate <span class="menu-default-shortcut">⌘D</span>
</Menu.Item>
<Menu.Item disabled class="menu-default-item">
Paste <span class="menu-default-shortcut">⌘V</span>
</Menu.Item>
<Menu.Separator class="menu-default-separator" />
<Menu.Group>
<Menu.GroupLabel class="menu-default-label">Share</Menu.GroupLabel>
<Menu.Item onSelect$={() => select$('Copy link')} class="menu-default-item">
Copy link
</Menu.Item>
<Menu.Item onSelect$={() => select$('Email')} class="menu-default-item">
Email
</Menu.Item>
</Menu.Group>
</Menu.Content>
</Menu.Root>
<p class="menu-default-status">Last action: {last.value}</p>
</div>
);
});.menu-default {
display: flex;
align-items: center;
gap: 16px;
font-family: inherit;
}
.menu-default-trigger {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 8px 12px;
border: 1px solid light-dark(#cbd5e1, #ffffff3d);
border-radius: 6px;
background: light-dark(#ffffff, #1b2045);
font: inherit;
font-size: 14px;
font-weight: 500;
color: light-dark(#0f172a, #ffffff);
cursor: pointer;
}
.menu-default-trigger:hover,
.menu-default-trigger[data-state="open"] {
background: light-dark(#f1f5f9, #ffffff14);
}
.menu-default-chevron {
width: 14px;
height: 14px;
}
/* The Content is a popover in the top layer; the library sets its position */
.menu-default-content {
box-sizing: border-box;
min-width: max(180px, var(--leve-menu-anchor-width));
padding: 4px;
border: 1px solid light-dark(#cbd5e1, #ffffff3d);
border-radius: 6px;
background: light-dark(#ffffff, #1b2045);
color: light-dark(#0f172a, #ffffff);
font-family: inherit;
box-shadow: 0 8px 24px rgb(15 23 42 / 0.18);
}
.menu-default-content:focus-visible {
outline: none;
}
.menu-default-item {
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
padding: 6px 8px;
border-radius: 4px;
font-size: 14px;
cursor: default;
outline: none;
}
/* The focused item: arrow keys, typeahead and the pointer move focus */
.menu-default-item:focus {
background: #009dfd;
color: #ffffff;
}
.menu-default-item[data-disabled] {
opacity: 0.5;
}
.menu-default-shortcut {
font-size: 12px;
opacity: 0.7;
}
.menu-default-label {
padding: 6px 8px 2px;
font-size: 12px;
font-weight: 600;
color: light-dark(#475569, #c9ddf0);
}
.menu-default-separator {
height: 1px;
margin: 4px 0;
background: light-dark(#e2e8f0, #ffffff1f);
}
.menu-default-status {
margin: 0;
font-size: 14px;
color: light-dark(#475569, #c9ddf0);
}
.menu-default-trigger:focus-visible {
outline: 2px solid #009dfd;
outline-offset: 2px;
}Installation#
Install the individual package, or use @leve-ui/core to get every component at once:
pnpm add @leve-ui/corenpm install @leve-ui/coreyarn add @leve-ui/corebun add @leve-ui/coreAnatomy#
import { Menu } from '@leve-ui/menu'; // or '@leve-ui/core'
<Menu.Root>
<Menu.Trigger />
<Menu.Content>
<Menu.Item />
<Menu.Separator />
<Menu.Group>
<Menu.GroupLabel />
<Menu.Item />
</Menu.Group>
<Menu.CheckboxItem>
<Menu.ItemIndicator />
</Menu.CheckboxItem>
<Menu.RadioGroup>
<Menu.RadioItem>
<Menu.ItemIndicator />
</Menu.RadioItem>
</Menu.RadioGroup>
<Menu.Sub>
<Menu.SubTrigger />
<Menu.SubContent>
<Menu.Item />
</Menu.SubContent>
</Menu.Sub>
<Menu.Arrow />
</Menu.Content>
</Menu.Root>
| Part | Element | Description |
|---|---|---|
Menu.Root | <div> | Wraps the parts and holds the open state. |
Menu.Trigger | <button> | The button that opens the menu. Use as to render another element or component. |
Menu.Content | <div> | The menu, a popover="manual" element in the top layer. |
Menu.Item | <div> | An action. Use as to render <a>, Qwik City's <Link>, or another component. |
Menu.Group | <div> | A group of items, named by its GroupLabel. |
Menu.GroupLabel | <div> | The name of a group. Not an item. |
Menu.CheckboxItem | <div> | An item that is turned on or off. |
Menu.RadioGroup | <div> | A set of RadioItems where one is selected. |
Menu.RadioItem | <div> | An item of a RadioGroup. |
Menu.ItemIndicator | <span> | The check mark of a CheckboxItem or RadioItem, hidden while unchecked. |
Menu.Sub | <div> | Wraps a submenu and holds its open state. |
Menu.SubTrigger | <div> | The item that opens a submenu. |
Menu.SubContent | <div> | The submenu, placed next to its SubTrigger. |
Menu.Separator | <div> | A line between items. |
Menu.Arrow | <div> | Optional. An arrow pointing at the Trigger, drawn with CSS. |
Use as on Menu.Item or Menu.Trigger to render another element or component. A component passed to as must spread the props it receives onto a single element, including id, aria-*, data-*, and on*$ event handlers.
Examples#
Link Items#
Pass <a> or a router link component such as Qwik City's <Link> to as on Menu.Item so items navigate while keeping role="menuitem", keyboard navigation, and menu closing.
import {
$,
component$,
type PropsOf,
type QRL,
Slot,
sync$,
useSignal,
useStyles$,
} from '@builder.io/qwik';
import { Menu } from '@leve-ui/menu';
import { LuChevronDown } from '@qwikest/icons/lucide';
import styles from './links.css?inline';
type ClientLinkProps = PropsOf<'a'> & {
onNavigate$?: QRL<(href: string) => void>;
};
// Example of a router link component (such as Qwik City's <Link>) that spreads props onto <a>
const ClientLink = component$<ClientLinkProps>(({ onNavigate$, onClick$, ...props }) => {
const preventDefault$ = sync$((event: MouseEvent) => {
event.preventDefault();
});
const handleClick$ = $(() => {
if (props.href) {
onNavigate$?.(props.href);
}
});
return (
<a {...props} onClick$={[preventDefault$, handleClick$, onClick$]}>
<Slot />
</a>
);
});
export default component$(() => {
useStyles$(styles);
const visited = useSignal('None');
const navigate$ = $((href: string) => {
visited.value = href;
});
return (
<div class="menu-links">
<Menu.Root>
<Menu.Trigger class="menu-links-trigger">
Navigation
<LuChevronDown class="menu-links-chevron" aria-hidden="true" />
</Menu.Trigger>
<Menu.Content sideOffset={4} class="menu-links-content">
<Menu.Item as={ClientLink} href="/docs" onNavigate$={navigate$} class="menu-links-item">
Documentation
</Menu.Item>
<Menu.Item
as={ClientLink}
href="/components"
onNavigate$={navigate$}
class="menu-links-item"
>
Components
</Menu.Item>
<Menu.Item
as={ClientLink}
href="/changelog"
onNavigate$={navigate$}
class="menu-links-item"
>
Changelog
</Menu.Item>
</Menu.Content>
</Menu.Root>
<p class="menu-links-status">Navigated to: {visited.value}</p>
</div>
);
});.menu-links {
display: flex;
align-items: center;
gap: 16px;
font-family: inherit;
}
.menu-links-trigger {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 8px 12px;
border: 1px solid light-dark(#cbd5e1, #ffffff3d);
border-radius: 6px;
background: light-dark(#ffffff, #1b2045);
font: inherit;
font-size: 14px;
font-weight: 500;
color: light-dark(#0f172a, #ffffff);
cursor: pointer;
}
.menu-links-trigger:hover,
.menu-links-trigger[data-state="open"] {
background: light-dark(#f1f5f9, #ffffff14);
}
.menu-links-trigger:focus-visible {
outline: 2px solid #009dfd;
outline-offset: 2px;
}
.menu-links-chevron {
width: 14px;
height: 14px;
}
/* The Content is a popover in the top layer; the library sets its position */
.menu-links-content {
box-sizing: border-box;
min-width: max(180px, var(--leve-menu-anchor-width));
padding: 4px;
border: 1px solid light-dark(#cbd5e1, #ffffff3d);
border-radius: 6px;
background: light-dark(#ffffff, #1b2045);
color: light-dark(#0f172a, #ffffff);
font-family: inherit;
box-shadow: 0 8px 24px rgb(15 23 42 / 0.18);
}
.menu-links-content:focus-visible {
outline: none;
}
.menu-links-item {
display: flex;
align-items: center;
padding: 6px 8px;
border-radius: 4px;
font-size: 14px;
color: inherit;
text-decoration: none;
cursor: default;
outline: none;
}
/* The focused item: arrow keys, typeahead and the pointer move focus */
.menu-links-item:focus {
background: #009dfd;
color: #ffffff;
}
.menu-links-status {
margin: 0;
font-size: 14px;
color: light-dark(#475569, #c9ddf0);
}Checkbox and Radio Items#
Menu.CheckboxItem turns an option on or off, and Menu.RadioItem selects one value of a Menu.RadioGroup. Both take bind: signals like the other controls. Space changes them without closing the menu; a click or Enter changes them and closes it.
import { component$, useSignal, useStyles$ } from '@builder.io/qwik';
import { Menu } from '@leve-ui/menu';
import { LuCheck, LuDot } from '@qwikest/icons/lucide';
import styles from './checkable.css?inline';
export default component$(() => {
useStyles$(styles);
const grid = useSignal(true);
const zoom = useSignal<string | null>('100');
return (
<div class="menu-checkable">
<Menu.Root>
<Menu.Trigger class="menu-checkable-trigger">View</Menu.Trigger>
<Menu.Content sideOffset={4} class="menu-checkable-content">
<Menu.CheckboxItem bind:checked={grid} class="menu-checkable-item">
<Menu.ItemIndicator class="menu-checkable-indicator">
<LuCheck class="menu-checkable-icon" />
</Menu.ItemIndicator>
Show grid
</Menu.CheckboxItem>
<Menu.CheckboxItem class="menu-checkable-item">
<Menu.ItemIndicator class="menu-checkable-indicator">
<LuCheck class="menu-checkable-icon" />
</Menu.ItemIndicator>
Show rulers
</Menu.CheckboxItem>
<Menu.Separator class="menu-checkable-separator" />
<Menu.Group>
<Menu.GroupLabel class="menu-checkable-label">Zoom</Menu.GroupLabel>
<Menu.RadioGroup bind:value={zoom}>
{['50', '100', '200'].map((value) => (
<Menu.RadioItem key={value} value={value} class="menu-checkable-item">
<Menu.ItemIndicator class="menu-checkable-indicator">
<LuDot class="menu-checkable-icon" />
</Menu.ItemIndicator>
{value}%
</Menu.RadioItem>
))}
</Menu.RadioGroup>
</Menu.Group>
</Menu.Content>
</Menu.Root>
<p class="menu-checkable-status">
Grid: {grid.value ? 'on' : 'off'}, zoom: {zoom.value}%
</p>
</div>
);
});.menu-checkable {
display: flex;
align-items: center;
gap: 16px;
font-family: inherit;
}
.menu-checkable-trigger {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 8px 12px;
border: 1px solid light-dark(#cbd5e1, #ffffff3d);
border-radius: 6px;
background: light-dark(#ffffff, #1b2045);
font: inherit;
font-size: 14px;
font-weight: 500;
color: light-dark(#0f172a, #ffffff);
cursor: pointer;
}
.menu-checkable-trigger:hover,
.menu-checkable-trigger[data-state="open"] {
background: light-dark(#f1f5f9, #ffffff14);
}
.menu-checkable-chevron {
width: 14px;
height: 14px;
}
/* The Content is a popover in the top layer; the library sets its position */
.menu-checkable-content {
box-sizing: border-box;
min-width: max(180px, var(--leve-menu-anchor-width));
padding: 4px;
border: 1px solid light-dark(#cbd5e1, #ffffff3d);
border-radius: 6px;
background: light-dark(#ffffff, #1b2045);
color: light-dark(#0f172a, #ffffff);
font-family: inherit;
box-shadow: 0 8px 24px rgb(15 23 42 / 0.18);
}
.menu-checkable-content:focus-visible {
outline: none;
}
.menu-checkable-item {
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
padding: 6px 8px;
border-radius: 4px;
font-size: 14px;
cursor: default;
outline: none;
}
/* The focused item: arrow keys, typeahead and the pointer move focus */
.menu-checkable-item:focus {
background: #009dfd;
color: #ffffff;
}
.menu-checkable-item[data-disabled] {
opacity: 0.5;
}
.menu-checkable-shortcut {
font-size: 12px;
opacity: 0.7;
}
.menu-checkable-label {
padding: 6px 8px 2px;
font-size: 12px;
font-weight: 600;
color: light-dark(#475569, #c9ddf0);
}
.menu-checkable-separator {
height: 1px;
margin: 4px 0;
background: light-dark(#e2e8f0, #ffffff1f);
}
.menu-checkable-status {
margin: 0;
font-size: 14px;
color: light-dark(#475569, #c9ddf0);
}
.menu-checkable-trigger:focus-visible {
outline: 2px solid #009dfd;
outline-offset: 2px;
}
/* The indicator keeps its space while hidden, so that the labels line up */
.menu-checkable-item {
justify-content: flex-start;
gap: 6px;
padding-left: 28px;
position: relative;
}
.menu-checkable-indicator {
position: absolute;
left: 8px;
display: inline-flex;
}
.menu-checkable-icon {
width: 14px;
height: 14px;
}Submenu#
Menu.Sub nests a menu. ArrowRight, Enter or Space on the Menu.SubTrigger opens it and focuses its first item; ArrowLeft and Escape close only the submenu. Hovering the SubTrigger opens it and keeps focus on the SubTrigger. Selecting an item in the submenu closes the whole menu.
Context Menu#
Menu.ContextTrigger opens the menu at the pointer on right click, Shift + F10 or long press, instead of from a button. See Context Menu.
API Reference#
Root#
| Prop | Default | Type |
|---|---|---|
| ids | – | { trigger?: string; content?: string } Overrides the element IDs of the parts. |
| defaultOpen | false | boolean Whether the menu is open initially (uncontrolled). It opens when the page resumes. |
| bind:open | – | Signal<boolean> A signal with the open state (controlled). |
| onOpenChange$ | – | QRL<(open: boolean) => void> Called when the menu opens or closes by a user interaction. |
| loop | false | boolean Whether ArrowDown on the last item moves to the first one, and ArrowUp on the first to the last. |
Also accepts all <div> attributes.
| Data attribute | Value |
|---|---|
data-leve-menu | Always present |
data-state | "open" | "closed" |
Trigger#
| Prop | Default | Type |
|---|---|---|
| as | 'button' | keyof HTMLElementTagNameMap | Component<any> The element or component to render instead of |
Also accepts all <button> attributes.
| Data attribute | Value |
|---|---|
data-leve-menu-trigger | Always present |
data-state | "open" | "closed" |
Content#
| Prop | Default | Type |
|---|---|---|
| side | 'bottom' | 'top' | 'right' | 'bottom' | 'left' The side of the Trigger (or the pointer of a context menu) to place the menu on. It flips when there is no room. |
| align | 'start' | 'start' | 'center' | 'end' The alignment along that side. |
| sideOffset | 0 | number The distance from the Trigger in px. |
| alignOffset | 0 | number The offset along the side in px. |
| avoidCollisions | true | boolean Whether to flip and shift the menu to keep it in the viewport. |
| collisionPadding | 0 | number The padding from the viewport edges when avoiding collisions, in px. |
| arrowPadding | 0 | number The padding between the arrow and the corners of the menu, in px. |
Also accepts all <div> attributes.
| Data attribute | Value |
|---|---|
data-leve-menu-content | Always present |
data-state | "open" | "closed" |
data-side | The final side after flipping: "top" | "right" | "bottom" | "left" |
data-align | "start" | "center" | "end" |
| CSS variable | Value |
|---|---|
--leve-menu-anchor-width | The width of the Trigger, for example to make the menu at least as wide |
--leve-menu-anchor-height | The height of the Trigger |
--leve-menu-available-width | The width available in the viewport |
--leve-menu-available-height | The height available in the viewport, for example for max-height |
The Content gets inline position, top and left while it is open. Set display only on :popover-open, since on the Content itself it would override the browser's display: none of the closed popover.
Item#
| Prop | Default | Type |
|---|---|---|
| as | 'div' | keyof HTMLElementTagNameMap | Component<any> The element or component to render instead of |
| disabled | false | boolean Disables the item: it cannot be selected and arrow keys skip it. |
| onSelect$ | – | QRL<() => void> Called when the item is selected with a click, Enter or Space. |
| closeOnSelect | true | boolean Whether selecting the item closes the menu. |
| textValue | – | string The text used by typeahead, when the item's text content is not suitable. |
Also accepts all <div> attributes.
| Data attribute | Value |
|---|---|
data-leve-menu-item | Always present |
data-disabled | Present when disabled |
data-text-value | The textValue, when set |
The focused item is the highlighted one: arrow keys, typeahead and the pointer move focus, so style it with :focus.
CheckboxItem#
| Prop | Default | Type |
|---|---|---|
| defaultChecked | false | boolean Whether the item is checked initially (uncontrolled). |
| bind:checked | – | Signal<boolean> A signal with the checked state (controlled). |
| onCheckedChange$ | – | QRL<(checked: boolean) => void> Called when the user checks or unchecks the item. |
| disabled | false | boolean Disables the item: it cannot be changed and arrow keys skip it. |
| closeOnSelect | true | boolean Whether a click or Enter closes the menu. Space never closes it (APG). |
| textValue | – | string The text used by typeahead, when the item's text content is not suitable. |
Also accepts all <div> attributes.
| Data attribute | Value |
|---|---|
data-leve-menu-checkbox-item | Always present |
data-state | "checked" | "unchecked" |
data-disabled | Present when disabled |
RadioGroup#
| Prop | Default | Type |
|---|---|---|
| defaultValue | null | string | null The value selected initially (uncontrolled). |
| bind:value | – | Signal<string | null> A signal with the selected value (controlled). |
| onValueChange$ | – | QRL<(value: string) => void> Called when the user selects a value. |
Also accepts all <div> attributes.
| Data attribute | Value |
|---|---|
data-leve-menu-radio-group | Always present |
RadioItem#
| Prop | Default | Type |
|---|---|---|
| value (required) | – | string The value of this item. |
| disabled | false | boolean Disables the item: it cannot be selected and arrow keys skip it. |
| closeOnSelect | true | boolean Whether a click or Enter closes the menu. Space never closes it (APG). |
| textValue | – | string The text used by typeahead, when the item's text content is not suitable. |
Also accepts all <div> attributes.
| Data attribute | Value |
|---|---|
data-leve-menu-radio-item | Always present |
data-state | "checked" | "unchecked" |
data-disabled | Present when disabled |
ItemIndicator#
No props of its own. Accepts all <span> attributes.
| Data attribute | Value |
|---|---|
data-leve-menu-item-indicator | Always present |
data-state | "checked" | "unchecked" |
The indicator has the hidden attribute while its item is unchecked.
Sub#
| Prop | Default | Type |
|---|---|---|
| defaultOpen | false | boolean Whether the submenu is open initially (uncontrolled). |
| bind:open | – | Signal<boolean> A signal with the open state (controlled). |
| onOpenChange$ | – | QRL<(open: boolean) => void> Called when the submenu opens or closes by a user interaction. |
Also accepts all <div> attributes.
| Data attribute | Value |
|---|---|
data-leve-menu-sub | Always present |
data-state | "open" | "closed" |
SubTrigger#
| Prop | Default | Type |
|---|---|---|
| disabled | false | boolean Disables the item: it cannot open the submenu and arrow keys skip it. |
| textValue | – | string The text used by typeahead, when the item's text content is not suitable. |
Also accepts all <div> attributes.
| Data attribute | Value |
|---|---|
data-leve-menu-sub-trigger | Always present |
data-state | "open" | "closed" |
data-disabled | Present when disabled |
SubContent#
| Prop | Default | Type |
|---|---|---|
| side | 'right' | 'top' | 'right' | 'bottom' | 'left' The side of the SubTrigger to place the submenu on. It flips when there is no room. |
| align | 'start' | 'start' | 'center' | 'end' The alignment along that side. |
| sideOffset | 0 | number The distance from the SubTrigger in px. |
| alignOffset | 0 | number The offset along the side in px. |
| avoidCollisions | true | boolean Whether to flip and shift the menu to keep it in the viewport. |
| collisionPadding | 0 | number The padding from the viewport edges when avoiding collisions, in px. |
| arrowPadding | 0 | number The padding between the arrow and the corners of the menu, in px. |
Also accepts all <div> attributes.
| Data attribute | Value |
|---|---|
data-leve-menu-sub-content | Always present |
data-state | "open" | "closed" |
data-side | The final side after flipping |
data-align | "start" | "center" | "end" |
The submenu exposes the same CSS variables as the Content with the --leve-menu-sub- prefix.
Group#
No props of its own. Accepts all <div> attributes.
| Data attribute | Value |
|---|---|
data-leve-menu-group | Always present |
GroupLabel#
No props of its own. Accepts all <div> attributes.
| Data attribute | Value |
|---|---|
data-leve-menu-group-label | Always present |
Separator#
No props of its own. Accepts all <div> attributes.
| Data attribute | Value |
|---|---|
data-leve-menu-separator | Always present |
Arrow#
No props of its own. Accepts all <div> attributes.
| Data attribute | Value |
|---|---|
data-leve-menu-arrow | Always present |
data-side | The final side of the Content |
Accessibility#
Complies with the Menu Button WAI-ARIA design pattern.
Menu.Triggerrendersaria-haspopup="menu",aria-expandedandaria-controls.Menu.Contentrendersrole="menu"and is named by the Trigger witharia-labelledby.- Items render
role="menuitem"andtabindex="-1": focus moves between them with the keyboard (roving focus), and the menu is one tab stop. - Disabled items render
aria-disabled="true". They are announced but cannot be selected, and arrow keys skip them. Menu.Grouprendersrole="group", named by itsMenu.GroupLabel.Menu.SubTriggerrendersrole="menuitem"witharia-haspopup="menu",aria-expandedandaria-controls;Menu.SubContentrendersrole="menu", named by its SubTrigger.Menu.CheckboxItemandMenu.RadioItemrenderrole="menuitemcheckbox"/role="menuitemradio"witharia-checked.Menu.RadioGrouprendersrole="group"; name it witharia-label, or place it in aMenu.Groupwith a label.Menu.ItemIndicatoris hidden from assistive technologies, sincearia-checkedconveys the state.
Keyboard Interactions#
| Key | Description |
|---|---|
Enter / Space / ArrowDown | On the Trigger, opens the menu and focuses the first item. |
ArrowUp | On the Trigger, opens the menu and focuses the last item. |
ArrowDown / ArrowUp | Moves focus to the next / previous enabled item. Wraps around when loop is set. |
Home / End | Moves focus to the first / last enabled item. |
| A character | Moves focus to the next item that starts with the typed characters. |
Enter / Space | On an item, selects it and closes the menu. |
Space | On a checkbox or radio item, changes it without closing the menu. |
Enter | On a checkbox or radio item, changes it and closes the menu. |
ArrowRight / Enter / Space | On a SubTrigger, opens the submenu and focuses its first item. |
ArrowLeft | In a submenu, closes it and returns focus to its SubTrigger. |
Escape | Closes the submenu, or the menu, and returns focus to the SubTrigger or the Trigger. |
Tab | Closes the menu and moves focus on. |