Menubar
Horizontal bar of menus, as in a desktop application.
Installation
import { Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger } from "@xerobi/ui/menubar"This component is client-side. In Astro, hydrate it with a client directive.
API reference
Menubar
Also accepts every prop of Base UI Menubar.
No props of its own.
MenubarCheckboxItem
| Prop | Type | Description |
|---|---|---|
| inset | boolean |
MenubarContent
No props of its own.
MenubarGroup
No props of its own.
MenubarItem
| Prop | Type | Description |
|---|---|---|
| inset | boolean | |
| variant | "default" | "destructive" |
MenubarLabel
| Prop | Type | Description |
|---|---|---|
| inset | boolean |
MenubarMenu
No props of its own.
MenubarPortal
No props of its own.
MenubarRadioGroup
No props of its own.
MenubarRadioItem
| Prop | Type | Description |
|---|---|---|
| inset | boolean |
MenubarSeparator
No props of its own.
MenubarShortcut
No props of its own.
MenubarSub
No props of its own.
MenubarSubContent
No props of its own.
MenubarSubTrigger
| Prop | Type | Description |
|---|---|---|
| inset | boolean |
MenubarTrigger
No props of its own.
Styling hooks: [data-slot="menubar"], [data-slot="menubar-menu"], [data-slot="menubar-group"], [data-slot="menubar-portal"], [data-slot="menubar-trigger"], [data-slot="menubar-content"], [data-slot="menubar-item"], [data-slot="menubar-checkbox-item"], [data-slot="menubar-radio-group"], [data-slot="menubar-radio-item"], [data-slot="menubar-label"], [data-slot="menubar-separator"], [data-slot="menubar-shortcut"], [data-slot="menubar-sub"], [data-slot="menubar-sub-trigger"], [data-slot="menubar-sub-content"].