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, opening14px-radius glass menus with trailing checkmarks (✓). - Mobile (
< 768px· iOS 27): Tapping a menu opens a32pxtop-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:
Installation (Shadcn Registry)
# Install via the configured @apple-liquid namespace (includes dropdown-menu, liquid-surface, and liquid-glass)
npx shadcn@latest add @apple-liquid/menubarFormatting Menubar
Compact menubar combining radio font choices and standard menu items:
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
Menubar
| Prop | Type | Default | Description |
|---|---|---|---|
glass | boolean | true | Liquid Glass material reacting to glass tint; false renders a 100% opaque surface |
orientation | 'horizontal' | 'vertical' | 'horizontal' | Menubar layout direction |
loopFocus | boolean | true | Loop keyboard arrow navigation between first and last trigger |
disabled | boolean | false | Disable the entire menubar |
MenubarContent
| Prop | Type | Default | Description |
|---|---|---|---|
glass | boolean | true | Liquid Glass material reacting to glass tint; false renders a 100% opaque surface |
title | React.ReactNode | — | Centered header title for the mobile bottom Drawer |
align | 'start' | 'center' | 'end' | 'start' | Desktop only: alignment relative to trigger |
sideOffset | number | 8 | Desktop only: distance in px from menubar |
alignOffset | number | -4 | Desktop only: offset in px along alignment axis |
Marker
Timestamps, system events, and section dividers for conversations and lists with secondary typography, optional hairline separators or bottom borders, and accent links.
Message
Group chat message row layout combining avatar, sender name, chat bubbles, and delivery status sized to Apple Messages guidelines.