Skip to content

Tabs

Tabs organize content into separate views within the same page context. Users switch between views without leaving the page.

VariantStyleUse
UnderlineBottom border on activeDefault, most common
PillsRounded background on activeFilters, segments
LineSimple text with separatorMinimal UIs
PropertyDescription
ActivationClick to switch
KeyboardLeft/Right arrows to navigate
OverflowHorizontal scroll on mobile
Default tabFirst tab selected by default
  • Short labels — 1–2 words max per tab
  • Consistent width — tabs shouldn’t jump when switching
  • Nested tabs — avoid; use separate pages instead
  • Don’t nest tabs — use pages + sidebar for deep navigation
  • Preserve tab state — remember active tab in URL hash
  • Tab count — 2–6 tabs; more than 6 → use dropdown or sidebar