Skip to content

Menubar

Free

A row of menus at the top of an app, such as File, Edit, and View. People open one and move to the next with the arrow keys.

  • Base UI
  • React 19
  • Tailwind CSS 4

Added Nov 8, 2026 · MIT + Commons Clause

Playground

Loading the preview

Props

Put one menu for each word in the bar. Each menu has a trigger and its content with items.

editor-menubar.tsx

Menubar

<div>
PropTypeDefaultDescription
From Base UIMenubarBase UI docs
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

MenubarTrigger

<button>
PropTypeDefaultDescription
From Base UIMenu.TriggerBase UI docs
...props<button> attributes—Every other attribute goes to the <button>, with a ref.

MenubarPortal

<div>
PropTypeDefaultDescription
From Base UIMenu.PortalBase UI docs
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

MenubarContent

<div>
PropTypeDefaultDescription
From Base UIMenu.PopupBase UI docs
...props<div> attributes—Every other attribute goes to the <div>, with a ref.
  • Use it in a desktop app with many commands, such as an editor.
  • Put one MenubarMenu with a MenubarTrigger and MenubarContent per menu.
  • Show shortcuts with MenubarShortcut; the menu does not bind the keys.
← →Moves between the triggers. With a menu open, opens the next menu.
EnterorSpaceor↓Opens the menu of the focused trigger.
HomeorEndMoves to the first or the last trigger.
EscapeCloses the menu. Focus returns to its trigger.

It is a Base UI Menubar: the bar has the menubar role, and each menu is a menu.

A disabled trigger fades, and the arrow keys skip it.

Built with

Installs with Menubar

Components
Button,Menu
  1. AddedMenubar, with Button, Menu.
Open the release