Overlays/Menubar

Menubar

A horizontal bar of menu buttons, each opening its own dropdown of actions, like a desktop application's File/Edit/View menu bar. Hovering another menu button while one is open switches directly to it.

import { Menubar, MenubarMenu } from "@animui/ui"

Basic

Disabled items

Props

Menubar

PropTypeDefaultDescription
childrenReact.ReactNodeOne or more MenubarMenu elements.
classNamestringAdditional classes for the menubar container.

MenubarMenu

PropTypeDefaultDescription
labelstringThe text shown on the menu's trigger button.
itemsDropdownMenuItem[]The list of menu items to render when open.
classNamestringAdditional classes for the trigger button.

Accessibility

  • Each menu trigger exposes aria-haspopup and aria-expanded.
  • Menu items are rendered with role="menuitem" inside a role="menu" container.
  • Closes on outside click or the Escape key.
© 2026 Steal Shadow. MIT License.Report an issue