Skip to main content
The Tabs component provides an accessible tabbed interface for organizing content into separate panels.

Installation

Usage

Components

Tabs (Root)

string
Controlled active tab value.
string
Default active tab for uncontrolled usage.
function
Callback when active tab changes.
string
default:"horizontal"
Layout orientation. Options: horizontal, vertical

TabsList

string
default:"default"
Visual style. Options: default, outlined, ghost
boolean
default:"false"
Make tabs fill the full width.
boolean
default:"false"
Hide the active tab indicator.
string
default:"default"
Tab shape. Options: default, pill
string
default:"md"
Tab size. Options: sm, md, lg

TabsTab

string
required
Unique value identifying this tab.
boolean
Disable the tab.

TabsPanel

string
required
Value matching the associated tab.

Examples

Variants

Pill Shape

Vertical Orientation

Full Width

Accessibility

  • Built on @base-ui/react Tabs primitive
  • Keyboard navigation (Arrow keys, Home, End)
  • Automatic tab focus management
  • ARIA attributes for roles and states
  • Active indicator for visual feedback