16 · tabsNavigation & Wayfinding5 Variations
Tabs
Five accessible WAI-ARIA tabbed interfaces built on single-row horizontal scroll or vertical sidebar patterns without wrapping tab rows: underline tabs, pill tabs, vertical tabs, icon tabs, and measured sliding indicator tabs.
tabswai-ariakeyboardnavigationsegmented
Animated Tabs
tabs/animated-tabs
Loading variation tabs/animated-tabs...
Component Information
Single-row tablist tracking selected tab offset and width for a sliding indicator underline, automatically switching to instant jumps under reduced motion.
- Variation ID
- tabs/animated-tabs
- Motion Engine
- css
- Source File
- src/labs/components/components/tabs/variations/animated-tabs.tsx
Reduced Motion & Accessibility
Omits transform/width transitions when prefers-reduced-motion is active.
- Maintains full WAI-ARIA tablist keyboard parity while animating visual underline cleanly.
Dependencies
Zero external runtime dependencies beyond React.
Usage Documentation
import { AnimatedTabs } from '@/src/labs/components/components/tabs';
export function SlidingTabs() {
return <AnimatedTabs />;
}Props API (2)
| Prop | Type | Default | Description |
|---|---|---|---|
| heading | string | — | Section heading. |
| tabs | readonly TabItemConfig[] | — | Configurable tabs. |