Skip to content

Menu Bar

Last updated 27 Oct 2026

NbMenuBar provides a horizontal menu bar (File, Edit, View) commonly found in desktop applications. It works seamlessly both standalone and inside NbShell.

The menu bar is composed of NbMenuBar (the container) and NbMenuBarItem (each top-level trigger with its associated dropdown).

With danger items ​

Menu items with destructive actions should use the danger prop and be separated by a divider.

Interaction behavior ​

The menu bar follows standard desktop menu bar conventions:

  • Click a trigger to open its menu. Click again to close.
  • Hover over adjacent triggers while a menu is open to switch between menus instantly.
  • ArrowLeft / ArrowRight cycles between top-level triggers.
  • Escape closes the active menu and returns focus to its trigger.