Skip to content

Menubar

Horizontal bar of menus, as in a desktop application.

Installation

bun add @xerobi/ui
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

Also accepts every prop of Base UI Menubar.

No props of its own.

PropTypeDescription
insetboolean

No props of its own.

No props of its own.

PropTypeDescription
insetboolean
variant"default" | "destructive"
PropTypeDescription
insetboolean

No props of its own.

No props of its own.

No props of its own.

PropTypeDescription
insetboolean

No props of its own.

No props of its own.

No props of its own.

No props of its own.

PropTypeDescription
insetboolean

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"].

Search documentation

Search pages, components and blocks.