Component packs › Unfurl › Menubar
One highlight slides between File, Edit and View on a spring; moving along an open bar rolls one menu up and the next one down.
Menubar is a menu from Unfurl, a component pack with 7 menus and popovers: Menus and popovers that grow from the exact point they came from and unroll like paper. Price: $2 for the whole pack.
Built with: shared highlight, menu to menu, arrow keys across.
Code: React and Next.js (TypeScript), Vue 3, plain HTML/CSS/JS, Tailwind CSS v4 and Motion (motion.dev). No npm packages needed. Keyboard accessible, with a reduced-motion version, in dark and light.
| Prop | Type | Default | Description |
|---|---|---|---|
menus | MenubarMenu[] | ||
label | string | "Editor" | Accessible name. Default "Editor". |
onSelect | (menu: number, item: number, label: string) => void |
readonly openIndex: number: Index of the open menu, or -1.openMenu(index: number): voidclose(): voiddestroy(): voidimport Menubar from './Menubar';
<Menubar />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Menus and popovers.