Skip to content

Tabs

Tabs

Tabs provide a tabbed navigation panel for organizing content into separate panels with smooth transitions between active states.

PropertyValue
Tab Height40-48px
Padding12-16px horizontal
Border Radius4-8px (top corners)
Active Color#4f46e5 (indigo-600)
Font Weight400 (normal), 700 (active)
Border Bottom3px solid when active

Simple underline tabs with minimal styling

Default Style

Card-style tabs with background fill on active state

Animated underline with smooth transitions

StateAppearance
DefaultGrey text, no indicator
HoverSlightly darker, pointer cursor
ActiveBrand color, bottom border shown
DisabledGrey with reduced opacity
AlignmentUsage
LeftDefault, tabs start from left
CenterTabs centered in container
RightTabs aligned to right edge
  • Organizing related content into sections
  • Switching between different views
  • Filtering content by category
  • Progressive disclosure of information
✅ Do❌ Don’t
Use 2-5 tabs maximumUse single tab (use content directly)
Keep labels short (1-2 words)Use long tab labels
Order tabs logicallyRandom tab ordering
Show clear active stateHide which tab is active
Ensure panel content relates to tabMismatch content and labels