Menubar
A visually persistent menu common in desktop applications that provides quick access to a consistent set of commands.
Installation
Usage
<Menubar>
<MenubarMenu>
<MenubarTrigger>File</MenubarTrigger>
<MenubarContent>
<MenubarGroup>
<MenubarItem>
New Tab
<MenubarShortcut>⌘T</MenubarShortcut>
</MenubarItem>
<MenubarItem>New Window</MenubarItem>
</MenubarGroup>
<MenubarSeparator />
<MenubarGroup>
<MenubarItem>Share</MenubarItem>
<MenubarItem>Print</MenubarItem>
</MenubarGroup>
</MenubarContent>
</MenubarMenu>
</Menubar>Composition
Use the following composition to build a Menubar:
Menubar
├── MenubarMenu
│ ├── MenubarTrigger
│ └── MenubarContent
│ ├── MenubarGroup
│ │ ├── MenubarLabel
│ │ ├── MenubarItem
│ │ └── MenubarItem
│ ├── MenubarSeparator
│ ├── MenubarGroup
│ │ ├── MenubarLabel
│ │ ├── MenubarCheckboxItem
│ │ └── MenubarCheckboxItem
│ ├── MenubarSeparator
│ ├── MenubarGroup
│ │ ├── MenubarLabel
│ │ └── MenubarRadioGroup
│ │ ├── MenubarRadioItem
│ │ └── MenubarRadioItem
│ └── MenubarSub
│ ├── MenubarSubTrigger
│ └── MenubarSubContent
│ └── MenubarGroup
│ ├── MenubarLabel
│ ├── MenubarItem
│ └── MenubarItem
└── MenubarMenu
├── MenubarTrigger
└── MenubarContent
└── MenubarGroup
├── MenubarLabel
├── MenubarItem
└── MenubarItemCheckbox
Use MenubarCheckboxItem for toggleable options.
Radio
Use MenubarRadioGroup and MenubarRadioItem for single-select options.
Submenu
Use MenubarSub, MenubarSubTrigger, and MenubarSubContent for nested menus.
With Icons
RTL
To enable RTL support in Blazix, see the RTL configuration guide.
Translated with AI for the demo, so it may have mistakes.
API Reference
Menubar
Other attributes are passed to the element it renders.
MenubarCheckboxItem
Other attributes are passed to the element it renders.
MenubarContent
Other attributes are passed to the element it renders.
MenubarGroup
Other attributes are passed to the element it renders.
MenubarItem
Other attributes are passed to the element it renders.
MenubarLabel
Other attributes are passed to the element it renders.
MenubarMenu
MenubarPortal
MenubarRadioGroup
Other attributes are passed to the element it renders.
MenubarRadioItem
Other attributes are passed to the element it renders.
MenubarSeparator
Other attributes are passed to the element it renders.
MenubarShortcut
Other attributes are passed to the element it renders.
MenubarSub
MenubarSubContent
Other attributes are passed to the element it renders.
MenubarSubTrigger
Other attributes are passed to the element it renders.
MenubarTrigger
Other attributes are passed to the element it renders.