Pho Design System

Menubar

A horizontal strip of top-level menus — the desktop-app File / Edit / View bar. Built on Base UI Menubar: place Menu components inside and the bar coordinates roving focus across them, and once one menu is open, moving the pointer to a sibling trigger switches to it without a click.

Import

import { Menubar } from "@photon-ai/pho-ui/components/menubar";
import { Menu } from "@photon-ai/pho-ui/components/menu";

Basic

Each top-level menu is a Menu whose Menu.Trigger is styled as a menubar button. The rest of the menu — Portal, Positioner, Popup, and Items — is exactly the Menu composition.

<Menubar>
  <Menu.Root>
    <Menu.Trigger className={triggerClass}>File</Menu.Trigger>
    <Menu.Portal>
      <Menu.Positioner align="start" sideOffset={8}>
        <Menu.Popup>
          <Menu.Item>New File</Menu.Item>
          <Menu.Item>Open…</Menu.Item>
        </Menu.Popup>
      </Menu.Positioner>
    </Menu.Portal>
  </Menu.Root>
  {/* …Edit, View */}
</Menubar>

Anatomy

Props

Menubar forwards every Base UI Menubar prop:

Accessibility

Keyboard:

Best practices