Component packs › Unfurl › Menubar

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.

Menubar props

PropTypeDefaultDescription
menusMenubarMenu[]
labelstring"Editor"Accessible name. Default "Editor".
onSelect(menu: number, item: number, label: string) => void

Methods on the ref

Use it in React

import Menubar from './Menubar';

<Menubar />

The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.

More in Unfurl

Good for: Menus and popovers.