Components / component
Sliding Tabs
Tabs with an underline that slides and stretches to the selected tab, full arrow-key navigation, and a panel that fades in.

Implementation
Tabs with an underline that slides and stretches to the selected tab, full arrow-key navigation, and a panel that fades in.
- Framework
- React 19.3.1 with TypeScript
- Motion
- Native CSS and browser APIs. No GSAP required.
- Available modes
- build
- Version
- 1.0.0 · published
Source code
Quality evidence
Export tested in 2 consumer projects with chromium, firefox, webkit. Evidence recorded on .
Changelog
v1.0.0 · Tabs with an underline that slides and stretches to the selected tab, full arrow-key navigation, and a panel that fades in.
Frequently asked questions
How do keyboard users move between tabs?
Tab enters the list once. Left and Right move between tabs and wrap, Home and End jump to the ends, and focus follows selection.
Why is only the selected panel in the page?
Following the tabs pattern, hidden panels are removed so assistive technology reads only the panel that belongs to the selected tab.