--- title: Menubar description: A visually persistent menu common in desktop applications that provides quick access to a consistent set of commands. component: true links: doc: https://www.radix-ui.com/docs/primitives/components/menubar api: https://www.radix-ui.com/docs/primitives/components/menubar#api-reference --- ## Installation CLI Manual ```bash npx shadcn@latest add menubar ``` Install the following dependencies: ```bash npm install @radix-ui/react-menubar ``` Copy and paste the following code into your project. Update the import paths to match your project setup. ## Usage ```tsx showLineNumbers import { Menubar, MenubarContent, MenubarItem, MenubarMenu, MenubarSeparator, MenubarShortcut, MenubarTrigger, } from "@/components/ui/menubar" ``` ```tsx showLineNumbers File New Tab ⌘T New Window Share Print ```