Menubar

Horizontal application menu bar with keyboard-navigable dropdown menus

Category: navigation · WCAG 2.2-AA · navigation, menubar, menu, application

States

Props

PropTypeDefaultDescription
ariaLabelstring—Invisible accessible name for the menubar landmark. The catalog convention; `aria-label` is accepted as an alias for the DOM spelling. Exactly one of the two is required — a menubar with no accessible name is a bug, so the type enforces it.
menusMenubarMenu[]—The top-level menus to render.
aria-labelstring—Accessible label used when no visible label is present.
classNamestring—Additional CSS class names merged onto the root element.

Design tokens

When to use

When not to use

How to build an accessible Menubar in React →

Examples

Basic

<Menubar aria-label="Main" menus={[{ id: "file", label: "File", items: [{ id: "new", label: "New", onSelect: () => {} }] }]} />

Related components

← Back to docs