Menubar
Navigate command groups horizontally and their actions vertically.
alpina-ui/interactive/menubarPreview 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.
| Key | Action |
|---|---|
| ← / → | 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 / End | Focus the first or last item in the current menu. |
| Enter / Space | Open the focused menu or run the focused action. |
| Escape | Dismiss 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
npx --no-install alpina add menubar