Local guide ↗ import { Menubar } from "bits-ui"

Application menubar

File, Edit, and View menus with shortcuts, a submenu, and persistent view toggles

Controlled active menu

Root value identifies the open Menu and can be driven from elsewhere in the interface

Active value: none

Left and Right move between menu triggers; arrow keys move within an open menu, Enter or Space selects, and Escape returns focus and closes it. Root's loop defaults to true for trigger navigation, while Content also exposes a loop option for its items. Use item textValue to make icon-heavy labels participate in typeahead.

Give each Menu a stable value when binding Root's active value. Content is portalled to the body by default, and GroupHeading must be nested in a Group or RadioGroup; standalone headings throw during development and are skipped by keyboard navigation.