Tabs
Organize content into multiple panels with tab navigation
Tabs split related content into panels and show one at a time behind a row of triggers. Use them to organize a settings screen, a card's detail views, or any section where the panels are peers and only one is relevant at once.
Preview
Installation
Usage
Composition
Wrap all TabsContent panels in TabsPanels to get the shared grid layout and directional slide transitions. TabsList renders the active indicator internally.
Examples
Sizes
Use size on TabsList to switch between small and medium; the list and indicator corner radius scale with it.
Small
Manage your account details and preferences.
Medium (default)
Manage your account details and preferences.
| Size | Description |
|---|---|
small | Compact triggers with tighter padding. |
medium | The default, roomier triggers. |
Controlled
Use value and onValueChange on Tabs to drive the active tab yourself.
Total Revenue
$45,231.89
Subscriptions
+2350
Underline Variant
Set variant="underline" on TabsList for an underline indicator instead of the capsule.
Dashboard Overview
Monitor your key metrics and performance indicators
128
Active Users
89%
Completion
24
Tasks
| Variant | Description |
|---|---|
capsule | The default, a filled pill behind the active tab. |
underline | A bar under (or beside) the active tab. |
Vertical Layout
Set orientation="vertical" on Tabs to stack triggers down the side.
Projects
12
Team Members
48
Vertical Underline
Combine orientation="vertical" with variant="underline" for a side rail.
$12.5K
Revenue
342
Orders
98.3%
Uptime
Vertical Underline with Sides
Use side on TabsList to place the underline on the left or right edge.
Vertical Tabs - Left Side (Default)
$12.5K
Revenue
342
Orders
98.3%
Uptime
Vertical Tabs - Right Side
$8.2K
Revenue
156
Orders
99.1%
Uptime
Animated
TabsPanels slides and fades between panels in the direction of the move.
API Reference
The Tabs component is built on top of Base UI's Tabs. All Base UI props are supported. The documentation below only covers custom props and modified defaults specific to our implementation.
For the complete Base UI API, see the Base UI Tabs documentation.
Props
TabsList
Container for tab triggers with visual styling. Wraps Base UI's Tabs.List.
TabsPanels
Grid container for tab panels. Wrap all TabsContent items in TabsPanels to enable proper layout and smooth directional slide and fade transitions between panels.
TabsContent
Panel that displays content for the active tab. Wraps Base UI's Tabs.Panel.