Componentnavigation1.25 KB gzipZero dependencies
Menubar
Theater box office menu bar with dropdown menus, shortcuts, and dashed frames.
Preview
Live Preview
Installation
Tokens guide →Add to your project via CLI (zero dependencies, code you own):
npx bigbullui add menubarOr install the full npm package:
npm install bigbulluiUsage
tsx7 lines
import { Menubar } from "@/components/ui/menubar"; <Menubar menus={[ { id: "file", label: "Ticket", items: [{ id: "p", label: "Print", shortcut: "⌘P" }] }, ]}/>Source code
menubar.tsx + 1 helperZero third-party dependencies (2 local files shown in tabs below).
tsxmenubar.tsx165 lines
"use client"; import * as React from "react";import { cn } from "./lib/utils"; export interface MenubarItem { id: string; label: string; shortcut?: string; disabled?: boolean; danger?: boolean; onSelect?: () => void;} export interface MenubarMenu { id: string; label: string; items: (MenubarItem | "separator")[];Props
Interactive Prop Playground
Tweak parsed AST props below to generate ready-to-paste JSX.
tsx3 lines
import { Menubar } from "@/components/ui/menubar"; <Menubar />| Prop | Type | Description |
|---|---|---|
| menus | MenubarMenu[] | Configures menus. (Default: []) |
| className | string | Optional Tailwind or custom CSS classes merged with component styles. |
| animated | boolean | Dual-mode: false renders instantly with no motion. Default true. |