Navigation
Menubar
A desktop-app menu bar (File, Edit, View) with the full WAI-ARIA keyboard model.
Ant Design: Menu mode="horizontal"
import { Menubar } from '@alea/ui';
Examples
Props
Accessibility
- role menubar with roving focus: one Tab stop.
- With a menu open, Left and Right move to the next menu.
Keyboard
| Key | Does |
|---|---|
| Arrow Left / Right | Move between menus |
| Enter, Space or Down | Open |
| Escape | Close |
Do and don't
Do
- Use it for desktop-style apps with many commands.
- Keep the top-level menus to six or fewer.
Don't
- Don't use it for website navigation: use NavigationMenu.
- Don't put frequent actions only in menus: add a toolbar.