Skip to content

Menubar

Navigate command groups horizontally and their actions vertically.

alpina-ui/interactive/menubar

Interactive preview

Preview scale · 100%

Usage notes

Coarse pointers get taller top-level actions. Menus accept shortcut hints, and horizontal arrow navigation transfers focus between groups.

When to use

Organise repeated application commands into familiar groups in a workspace or editor.

When to avoid

Use NavigationMenu for ordinary site links where readers expect standard Tab navigation.

Accessibility

Name the menubar and test arrow keys, Escape and focus return across menus. Keep commands available with a keyboard.

Keys
KeyAction
← / →Focus the neighbouring menu or switch groups while a menu is open.
↓ / ↑Open a group at the first or last item, then move through its actions.
Home / EndFocus the first or last item in the current menu.
Enter / SpaceOpen the focused menu or run the focused action.
EscapeDismiss the menu and return to its trigger.

Content

Use short category nouns for top-level menus and verbs for commands beneath them. Preserve familiar ordering across translations.

Use
File / Print document
Avoid
Menu 1 / Execute

Copy in four languages

German
Datei5 characters
French
Fichier7 characters
Italian
File4 characters
Romansh
Datoteca8 characters
Add to your project
npx --no-install alpina add menubar