---
title: Menu Bar
description: A visually persistent menu common in desktop applications that provides quick access to commands.
links:
doc: https://base-ui.com/react/components/menubar#api-reference
---
## Preview
## Installation
CLI
Manual
```bash
npx @olyx/cli@latest add menu-bar
```
Install the following dependencies:
```bash
npm install @base-ui/react
```
Copy and paste the following code into your project.
Update the import paths to match your project setup.
## Usage
```tsx
import {
Menubar,
MenubarContent,
MenubarGroup,
MenubarItem,
MenubarMenu,
MenubarSeparator,
MenubarTrigger,
} from "@/components/ui/menu-bar"
```
```tsx
File
New Tab
New Window
Share
Print
```
## API Reference
#### Menubar
Root container. Wraps `Menubar` from Base UI with border and background styling.
#### MenubarMenu
Menu root. Alias for `DropdownMenu`.
#### MenubarTrigger
Trigger button for a menu. Styled wrapper for `DropdownMenuTrigger` with menubar-specific styling.
#### MenubarContent
Popup content for a menu. Alias for `DropdownMenuContent`.
| Prop | Type | Default |
| ------------- | ---------------------------------------------- | ---------- |
| `side` | `"top" \| "bottom" \| "left" \| "right"` | `"top"` |
| `align` | `"start" \| "center" \| "end"` | `"start"` |
| `sideOffset` | `number` | `8` |
| `alignOffset` | `number` | `0` |
#### MenubarGroup
Groups related menu items. Alias for `DropdownMenuGroup`.
#### MenubarLabel
Label for a menu group. Alias for `DropdownMenuGroupLabel`.
#### MenubarItem
Individual selectable menu item. Alias for `DropdownMenuItem`.
#### MenubarSeparator
Visual separator between items or groups. Alias for `DropdownMenuSeparator`.
#### MenubarSub
Submenu container. Alias for `DropdownMenuSubmenu`.
#### MenubarSubTrigger
Trigger for opening a submenu. Alias for `DropdownMenuSubmenuTrigger`.
#### MenubarCheckboxItem
Toggleable menu item with a check indicator. Alias for `DropdownMenuCheckboxItem`.
#### MenubarRadioGroup
Container for exclusive radio menu items. Alias for `DropdownMenuRadioGroup`.
#### MenubarRadioItem
Radio menu item with a dot indicator. Alias for `DropdownMenuRadioItem`.
## Examples
### Checkbox
### Radio
### Submenu