Oros UI

Search documentation

Search Oros UI pages and components.

Menubar

Organizes application commands into persistent top-level menus.

Installation

Install Menubar from Oros with shadcn CLI 4.13.0.

pnpm dlx shadcn@4.13.0 add @oros/menubar

Usage

import {
  Menubar,
  MenubarPortal,
  MenubarMenu,
  MenubarTrigger,
  MenubarContent,
  MenubarGroup,
} from "@/components/ui/menubar"

Open the Source tab in the preview for a complete working example.

Anatomy

ExportResponsibility
MenubarThe root component that owns the primary structure and state.
MenubarPortalMoves overlay content to a stable document layer.
MenubarMenuA composable part of the component anatomy.
MenubarTriggerControls opening, selection, or disclosure behavior.
MenubarContentContains the primary visible content.
MenubarGroupGroups related items into one logical set.
MenubarSeparatorVisually and semantically separates related groups.
MenubarLabelProvides a visible label for its related control or value.
MenubarItemRepresents one option or repeated child.
MenubarShortcutA composable part of the component anatomy.
MenubarCheckboxItemRepresents one option or repeated child.
MenubarRadioGroupGroups related items into one logical set.
MenubarRadioItemRepresents one option or repeated child.
MenubarSubA composable part of the component anatomy.
MenubarSubTriggerControls opening, selection, or disclosure behavior.
MenubarSubContentContains the primary visible content.

API Reference

Menubar exports 16 named entries. Component exports accept the props of their underlying HTML element or Base UI component, plus an optional className, unless the source defines a more focused type.

  • Menubar Component
  • MenubarPortal Component
  • MenubarMenu Component
  • MenubarTrigger Component
  • MenubarContent Component
  • MenubarGroup Component
  • MenubarSeparator Component
  • MenubarLabel Component
  • MenubarItem Component
  • MenubarShortcut Component
  • MenubarCheckboxItem Component
  • MenubarRadioGroup Component
  • MenubarRadioItem Component
  • MenubarSub Component
  • MenubarSubTrigger Component
  • MenubarSubContent Component

Accessibility

  • Menubar inherits focus management and keyboard support from Base UI; keep the provided trigger and content parts together.
  • Give icon-only triggers an accessible name, retain visible focus styles, and verify Escape and focus-return behavior in the final composition.

Source

Menubar uses the standard shadcn API and is distributed through Oros. Installing it adds the component source and required dependencies to your app. The Source tab above shows a complete usage example.