docs/data/material/components/menubar/menubar.md
{{"component": "@mui/internal-core-docs/ComponentLinkHeader"}}
The menu bar is a visually persistent menu similar to those found in desktop applications that provides a consistent set of frequently used commands.
Material UI does not include a menu bar component out of the box, but this page provides components composed with the Base UI Menubar and styled to align with Material Design (MD2) specifications, so they can be used with Material UI.
As such, you must install Base UI before proceeding. The examples that follow can then be copied and pasted directly into your app. Note that Base UI is tree-shakeable, so the final bundle will only include the components used in your project.
<!-- #npm-tag-reference --> <codeblock storageKey="package-manager">npm install @base-ui/react
pnpm add @base-ui/react
yarn add @base-ui/react
./Menubar.The basic menubar component displays a row of menu triggers with dropdowns containing menu items.
{{"demo": "BasicMenubar.js"}}
Display keyboard shortcuts alongside menu items using the hint prop.
{{"demo": "ShortcutHintsMenubar.js"}}
For toggle options that can be independently enabled or disabled.
{{"demo": "CheckboxItemsMenubar.js"}}
For mutually exclusive options where only one can be selected at a time.
{{"demo": "RadioGroupItemsMenubar.js"}}
Add icons to menu items using the icon prop for faster visual recognition.
{{"demo": "IconItemsMenubar.js"}}
Organize menu items into logical sections with labeled groups.
{{"demo": "GroupLabelMenubar.js"}}
See the documentation below for a complete reference to all of the props.