Skip to content

Tabs

Splits content into switchable tabs on a single screen, allowing users to view different sections of related information without reloading the page.

3.4 KB
•
Updated on August 21, 2026

Installation

Bash

Usage

Code
Code

Anatomy

Code

Features

Variants

Tabs in rounded button style (default) and border line style (underline).

Sizes

Tabs triggers in sm, default, and lg sizes.

Accessibility

  • Follows the WAI-ARIA Tabs Pattern.
  • Tab triggers and panels are linked via aria-controls and aria-labelledby.

Keyboard Interactions

Vertical Orientation

Tabs navigation arranged vertically using orientation="vertical".

API Reference

Tabs

Root component. Styled wrapper for Tabs.Root from Base UI.

TabsList

Container for tab triggers. Styled wrapper for Tabs.List from Base UI.

TabsTab

Individual tab trigger. Styled wrapper for Tabs.Tab from Base UI. Also exported as TabsTrigger.

TabsPanel

Content panel for each tab. Styled wrapper for Tabs.Panel from Base UI. Also exported as TabsContent.

TabsIndicator

Visual indicator for the active tab. Styled wrapper for Tabs.Indicator from Base UI.

Examples

Tabs with full rounded triggers
Tabs with icon before name
Tabs with icon before name and underline
Tabs with icon only
Tabs with underline and icon on top
Tabs with count badge
Tabs with icon only and count badge
Tabs with icon only and grouped tooltips