Open experiment
Gesture tab switcher
Supports click, arrow-key, and horizontal swipe selection within one compact tab surface. Pointer drag crosses a threshold to change tabs; arrows and buttons provide full equivalence. Adds bounded swipe semantics and a drag-following indicator to standard tab selection.
Lab tested Responsive Dark mode Interactive
- Version
- 1.0.0
- Updated
- 2026-08-02
- Dependencies
- Zero
<nav
class="cmp-gesture-tab-switcher cmp-atlas"
data-state="idle"
data-variant="1"
aria-label="Gesture tab switcher demo"
>
<div class="cmp-atlas__nav-head">
<span>Swipe glass tabs</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>Home</span></button
><button type="button" data-choice="1" aria-pressed="false">
<i aria-hidden="true">02</i><span>Atlas</span></button
><button type="button" data-choice="2" aria-pressed="false">
<i aria-hidden="true">03</i><span>Patterns</span></button
><button type="button" data-choice="3" aria-pressed="false">
<i aria-hidden="true">04</i><span>Current</span>
</button>
</div>
<div class="cmp-atlas__nav-detail">
<b data-output>Home</b><span>Context-aware destination</span><i aria-hidden="true"></i>
</div>
<p data-status aria-live="polite">Home 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.