Skip to Content
Liquid Glass UI
Components

Menubar

Responsive Apple Liquid Glass menubar displaying a floating pill macOS 27 glass bar with seamless hover switching on desktop, and automatically adapting to an iOS 27 bottom Liquid Glass Drawer with grouped rows on mobile.

Built on @base-ui/react/menubar and DropdownMenu, fully compatible with the standard shadcn/ui JSX API (<Menubar> / <MenubarMenu> / <MenubarTrigger> / <MenubarContent> / <MenubarGroup> / <MenubarItem> / <MenubarCheckboxItem> / <MenubarRadioGroup> / <MenubarSub>):

  • Desktop (>= 768px · macOS 27): Floating pill Liquid Glass bar (<LiquidSurfaceBackdrop />) where active triggers highlight in solid Apple Blue with seamless hover switching across adjacent menus, opening 14px-radius glass menus with trailing checkmarks (✓).
  • Mobile (< 768px · iOS 27): Tapping a menu opens a 32px top-radius bottom Liquid Glass Drawer with Inset Grouped headers (MenubarGroup + MenubarLabel) and submenu drill-down with ‹ Back.

Responsive Live Preview

Includes shortcuts, nested submenus, radio groups, checkboxes, and disabled items; open any menu on desktop and hover across neighbors, or switch to the Mobile icon top-right to explore the bottom Drawer:

apple-liquid-ui/preview/menubar-liquid-hero
MacBook · 16:10

Installation (Shadcn Registry)

# Install via the configured @apple-liquid namespace (includes dropdown-menu, liquid-surface, and liquid-glass)
npx shadcn@latest add @apple-liquid/menubar

Formatting Menubar

Compact menubar combining radio font choices and standard menu items:

apple-liquid-ui/preview/menubar-compact
MacBook · 16:10

Usage

import {
  Menubar,
  MenubarContent,
  MenubarGroup,
  MenubarItem,
  MenubarLabel,
  MenubarMenu,
  MenubarSeparator,
  MenubarShortcut,
  MenubarTrigger,
} from '@/components/ui/menubar';

export function Example() {
  return (
    <Menubar>
      <MenubarMenu>
        <MenubarTrigger>File</MenubarTrigger>
        <MenubarContent title="File">
          <MenubarGroup>
            <MenubarLabel>Document</MenubarLabel>
            <MenubarItem>
              New Document
              <MenubarShortcut>⌘N</MenubarShortcut>
            </MenubarItem>
            <MenubarItem>
              Save
              <MenubarShortcut>⌘S</MenubarShortcut>
            </MenubarItem>
          </MenubarGroup>
          <MenubarSeparator />
          <MenubarItem>Print…</MenubarItem>
        </MenubarContent>
      </MenubarMenu>
    </Menubar>
  );
}

Props API

PropTypeDefaultDescription
glassbooleantrueLiquid Glass material reacting to glass tint; false renders a 100% opaque surface
orientation'horizontal' | 'vertical''horizontal'Menubar layout direction
loopFocusbooleantrueLoop keyboard arrow navigation between first and last trigger
disabledbooleanfalseDisable the entire menubar
PropTypeDefaultDescription
glassbooleantrueLiquid Glass material reacting to glass tint; false renders a 100% opaque surface
titleReact.ReactNode—Centered header title for the mobile bottom Drawer
align'start' | 'center' | 'end''start'Desktop only: alignment relative to trigger
sideOffsetnumber8Desktop only: distance in px from menubar
alignOffsetnumber-4Desktop only: offset in px along alignment axis

On this page