> ## Documentation Index
> Fetch the complete documentation index at: https://docs.pharen.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Menubar

> Import and use the Menubar components from @pharen/ui.

export const PharenUiPreview = ({name, title = 'Pharen UI component preview'}) => <div className="not-prose my-6 overflow-hidden rounded-xl border border-gray-200 bg-white shadow-sm dark:border-white/10 dark:bg-zinc-950">
    <div className="pharen-ui-preview-root" data-pharen-ui-preview data-example={name} role="region" aria-label={title} />
  </div>;

Use **Menubar** to build an action or navigation pattern. This page covers every Vue component exported by the public module.

<PharenUiPreview name="menubar" title="Menubar preview" />

<Accordion title="View code">
  ```vue theme={null}
  <script setup lang="ts">
  import { Menubar, MenubarContent, MenubarItem, MenubarMenu, MenubarSeparator, MenubarShortcut, MenubarTrigger } from '@pharen/ui';
  </script>

  <template>
    <Menubar>
      <MenubarMenu>
        <MenubarTrigger>File</MenubarTrigger>
        <MenubarContent>
          <MenubarItem>New workflow<MenubarShortcut>⌘N</MenubarShortcut></MenubarItem>
          <MenubarItem>Duplicate<MenubarShortcut>⇧⌘D</MenubarShortcut></MenubarItem>
          <MenubarSeparator />
          <MenubarItem>Archive</MenubarItem>
        </MenubarContent>
      </MenubarMenu>
      <MenubarMenu><MenubarTrigger>Edit</MenubarTrigger><MenubarContent><MenubarItem>Undo</MenubarItem><MenubarItem>Redo</MenubarItem></MenubarContent></MenubarMenu>
    </Menubar>
  </template>
  ```
</Accordion>

## Installation

<CodeGroup>
  ```bash npm theme={null}
  npm install @pharen/ui
  ```

  ```bash pnpm theme={null}
  pnpm add @pharen/ui
  ```

  ```bash yarn theme={null}
  yarn add @pharen/ui
  ```

  ```bash bun theme={null}
  bun add @pharen/ui
  ```
</CodeGroup>

<Note>
  Import `@pharen/ui/styles.css` exactly once in your application entrypoint.
</Note>

## Usage

```ts theme={null}
import { Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger } from '@pharen/ui';
```

## Exports

| Export                | Purpose                                  |
| --------------------- | ---------------------------------------- |
| `Menubar`             | Exported Vue component from this module. |
| `MenubarCheckboxItem` | Represents one item.                     |
| `MenubarContent`      | Contains the visible content.            |
| `MenubarGroup`        | Groups related items.                    |
| `MenubarItem`         | Represents one item.                     |
| `MenubarLabel`        | Labels a value or region.                |
| `MenubarMenu`         | Exported Vue component from this module. |
| `MenubarPortal`       | Exported Vue component from this module. |
| `MenubarRadioGroup`   | Groups related items.                    |
| `MenubarRadioItem`    | Represents one item.                     |
| `MenubarSeparator`    | Separates adjacent regions.              |
| `MenubarShortcut`     | Exported Vue component from this module. |
| `MenubarSub`          | Exported Vue component from this module. |
| `MenubarSubContent`   | Contains the visible content.            |
| `MenubarSubTrigger`   | Opens or activates the component.        |
| `MenubarTrigger`      | Opens or activates the component.        |

## Source

[Open the source on GitHub](https://github.com/PharenIT/ELEV8-Labs/tree/main/src/packages/ui/src/components/menubar)
