Jone

Menubar

A menu bar providing commands and options for your application.

A menu bar providing commands and options for your application.

Anatomy

Import the component and assemble its parts:

Anatomy
import { Menubar } from '@base-ui/react/menubar';
import { Menu } from '@base-ui/react/menu';

<Menubar>
  <Menu.Root>
    <Menu.Trigger />
    <Menu.Portal>
      <Menu.Backdrop />
      <Menu.Positioner>
        <Menu.Popup>
          <Menu.Arrow />
          <Menu.Item />
          <Menu.Separator />
          <Menu.Group>
            <Menu.GroupLabel />
          </Menu.Group>
          <Menu.RadioGroup>
            <Menu.RadioItem />
          </Menu.RadioGroup>
          <Menu.CheckboxItem />
        </Menu.Popup>
      </Menu.Positioner>
    </Menu.Portal>
  </Menu.Root>
</Menubar>;

API reference

Root

NameTypeDefaultDescription
modalOptionalboolean | undefinedtrueWhether the menubar is modal.
disabledOptionalboolean | undefinedfalseWhether the whole menubar is disabled.
orientationOptionalMenuRoot.Orientation | undefinedhorizontalThe orientation of the menubar.
loopFocusOptionalboolean | undefinedtrueWhether to loop keyboard focus back to the first item when the end of the list is reached while using the arrow keys.

On this page