Menubar

Horizontal application menu bar with keyboard-navigable dropdown menus

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

States

Props

PropTypeDefaultDescription
menusMenubarMenu[]The top-level menus to render.
aria-labelstringAccessible label used when no visible label is present.
classNamestringAdditional 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