CodingLaboratory
Lab Commands
Enter The Lab

Component Lab / navigation-layout / adaptive-command-bar

Stable release
Back to category

Open experiment

Adaptive command bar

Prioritizes contextual commands in a compact toolbar that exposes overflow without hiding the primary action. Command buttons update context; overflow opens a roving keyboard menu with Escape restoration. It adapts a toolbar command hierarchy rather than searching a global command catalog.

Lab tested Responsive Dark mode Interactive
Version
1.0.0
Updated
2026-08-02
Dependencies
Zero
Live canvasInstant token updates
Source filesEditable and export-ready
<nav
  class="cmp-adaptive-command-bar cmp-atlas"
  data-state="idle"
  data-variant="2"
  aria-label="Adaptive command bar demo"
>
  <div class="cmp-atlas__nav-head">
    <span>Adaptive glass command</span
    ><button type="button" data-primary aria-pressed="false">Pin interface</button>
  </div>
  <div class="cmp-atlas__nav-track">
    <button type="button" data-choice="0" aria-pressed="true">
      <i aria-hidden="true">01</i><span>Signal</span></button
    ><button type="button" data-choice="1" aria-pressed="false">
      <i aria-hidden="true">02</i><span>Studio</span></button
    ><button type="button" data-choice="2" aria-pressed="false">
      <i aria-hidden="true">03</i><span>Systems</span></button
    ><button type="button" data-choice="3" aria-pressed="false">
      <i aria-hidden="true">04</i><span>Ship</span>
    </button>
  </div>
  <div class="cmp-atlas__nav-detail">
    <b data-output>Signal</b><span>Context-aware destination</span><i aria-hidden="true"></i>
  </div>
  <p data-status aria-live="polite">Signal is active</p>
</nav>
No runtime reactions detected Open in Editor

Validated in the lab

Experiment report

  • Schema and source files passed
  • Responsive test passed
  • Keyboard test passed
  • No console errors

Component ingredients

Dependencies
None
Browser support
Current Chrome, Current Edge, Current Firefox, Current Safari
Version
1.0.0
Last tested
2026-08-02

Accessibility notes

  • Every interactive target is a labelled native control with a visible focus treatment.
  • State changes are communicated through a polite text status and never by color alone.
  • The contained visual effects stop when the user requests reduced motion.

License: MIT License for open-source use, modification, and distribution.