Navigation
Menubar
A row of menus, like a desktop application bar. Open one, then move across the others by hovering.
Group: Navigation. Exports: Menubar. shadcn/ui equivalent: Menubar (partial parity).
Usage
import { Menubar } from "./halaska-kit";
Menubar props
menusarray:
Accessibility
- The bar has the menubar role. Each title is a menuitem with aria-haspopup and aria-expanded.
- Left and Right arrows move between titles, and the Down arrow opens a menu with focus on its first item.
- Inside a menu, Up and Down arrows, Home and End move between items. Escape closes it and returns focus to the title.
- Every title is a Tab stop. Picking an item returns focus to its title.
Known gaps
- No submenus.
- No checkbox or radio items.
- No disabled items.
- No item icons.
Halaska UI · Components · Patterns · Screens · Install