Skip to main content
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
Pill Tabs
tabs/pill-tabs
Loading variation tabs/pill-tabs...

Component Information

Segmented pill switcher preserving high-contrast borders for forced-colors clarity and single-row overflow safety.

Variation ID
tabs/pill-tabs
Motion Engine
css
Source File
src/labs/components/components/tabs/variations/pill-tabs.tsx
Reduced Motion & Accessibility

Instant color and border inversion on selection.

  • Applies borders cleanly so selected pill shape remains legible even in forced-colors mode.
Dependencies

Zero external runtime dependencies beyond React.

Usage Documentation

import { PillTabs } from '@/src/labs/components/components/tabs';

export function PillSwitcher() {
  return <PillTabs />;
}

Props API (2)

PropTypeDefaultDescription
headingstring—Tabs section heading.
tabsreadonly TabItemConfig[]—Configurable tabs.