Componentnavigation1.25 KB gzipZero dependencies

Menubar

Theater box office menu bar with dropdown menus, shortcuts, and dashed frames.

Preview

Live Preview
Open ↗

Installation

Tokens guide →

Add to your project via CLI (zero dependencies, code you own):

npx bigbullui add menubar

Or install the full npm package:

npm install bigbullui

Usage

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 helper

Zero 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 />
PropTypeDescription
menusMenubarMenu[]Configures menus. (Default: [])
classNamestringOptional Tailwind or custom CSS classes merged with component styles.
animatedbooleanDual-mode: false renders instantly with no motion. Default true.