Tabs

Switches between views of the same content.

View as Markdown

Installation

Usage

Composition

Variant

Use the variant prop on TabsList to choose between a pill sliding between the tabs and a line sliding along a baseline.

Size

Use the size prop on TabsList. Every trigger in the list follows it.

Orientation

Set orientation="vertical" on Tabs to stack the tabs beside their panels, as in a settings page. Arrow keys move up and down.

Name, avatar and language.

Disabled

Add disabled to a TabsTrigger to keep it in place but out of reach.

API Reference

TabsList renders the indicator that slides to the active tab, and switches tabs as the arrow keys move focus; pass activateOnFocus={false} to switch on Enter instead. A row of tabs wider than its container scrolls sideways, fading the edge with more past it, and the picked tab scrolls into view however it was picked. A vertical list's panel moves under it once it has less than sizes.menu beside it.

Every part takes sx, applied last. For the rest, see Base UI Tabs.