Menubar
A keyboard-coordinated bar of independent command panels.
A keyboard-coordinated bar of independent command panels.
Root.value identifies one open panel. Trigger.value and Content.value pair a panel. The bar uses one roving tab stop, left/right movement, ArrowDown/Up entry, vertical command navigation and typeahead. Escape restores the matching trigger; outside press and command selection dismiss. Controlled value emits requests without changing the owner.
Parts: Root, Trigger, Content, Item.
Draft source. Nested submenus, complete native/GPUI/compiler evidence, consumer/visual acceptance and independent lifecycle admission remain open.
Menubar is workspace source. There is no public proto-ui add target. Passing value selects controlled mode.
| Prop | Type | Default |
|---|---|---|
defaultValue | string | '' |
disabled | boolean | false |
loop | boolean | true |
a11yLabel | string | '' |
These props belong to Root. Trigger defaults value to '' and disabled to false. Content defaults value and a11yLabel to '' and sideOffset to 4. Item defaults value and textValue to '', disabled to false and closeOnSelect to true.