ComponentsMenubar

Menubar

component

A desktop-style top menu bar with nested menus — File / Edit / View.

Menubar
Desktop app menu bar — ←/→ between menus, ↓ to open, Esc to close (reuses the menu keyboard model).

Composes: Dropdown Menu · Button

Recipe CSS

This is the exact CSS your kit ships for Menubar — token-driven, so it re-themes with every knob. Get it (and the rest) from the configurator's Use kit panel.

/* === Menubar === — the desktop app menu bar (File / Edit / View …). A thin
   horizontal strip of triggers; each opens the shared .menu popup. WAI-ARIA
   menubar: role=menubar + roving tabindex across .menubar__item triggers. */
.menubar {
  display: flex;
  align-items: center;
  gap: var(--k-s-2);
  padding: var(--k-s-2);
  background: var(--k-chrome-bg, var(--k-surface));
  border: var(--k-bw) solid var(--k-border);
  border-radius: var(--k-radius-md);
}
.menubar__item {
  appearance: none;
  -webkit-appearance: none;
  background: none;
  border: 0;
  font: inherit;
  font-size: var(--k-type-small);
  color: var(--k-fg);
  padding: var(--k-s-4) var(--k-s-10);
  border-radius: var(--k-radius-sm);
  cursor: pointer;
  white-space: nowrap;
}
.menubar__item:hover { background: var(--k-state-hover); }
.menubar__item[aria-expanded="true"] { background: var(--k-state-hover); }
.menubar__item:focus-visible { outline: var(--k-ring-w, 2px) solid var(--k-ring); outline-offset: -2px; }