macOS
JS behaviour
Menu bar & Control Centre
The Mac menu bar: Apple and File menus with ⌘ shortcuts, separators and ticks, status items on the right, and a Control Centre popover with brightness and Wi-Fi sliders.
Real scenarios
The component as it is used in a product — not a specimen grid.
Important props
| Prop | Type | Default | What it does |
|---|---|---|---|
| menu | panel | 'translucent' | The open menu: a translucent panel, soft shadow, 5–6px corners. |
| shortcut | column | '⌘…' | Shortcuts in a trailing column, apart from labels. |
| status-items | icons | 'right side' | Status items always sit on the menu bar’s trailing side. |
Snippet
<nav class="mcmenu">
<button class="mcmenu-item" data-open>🍎</button>
<button class="mcmenu-item">File</button>
<span class="mcmenu-spacer"></span>
<button class="mcmenu-item" data-cc>🎚</button>
</nav>
<div class="mcmenu-panel">…items with ⌘ shortcuts…</div>
<style>
.mcmenu { display: flex; align-items: center; block-size: 24px; padding-inline: 8px;
background: #ffffff80; backdrop-filter: blur(20px) saturate(1.8); }
.mcmenu-item { padding-inline: 10px; border-radius: 4px; font: 500 13px system-ui; }
.mcmenu-item[data-open] { background: #00000014; }
.mcmenu-panel { inline-size: 220px; padding: 4px; border-radius: 6px;
background: #ffffffd9; backdrop-filter: blur(40px);
box-shadow: 0 10px 40px #0000002e; }
</style>