10.5k

Tabs

A component for toggling between related panels on the same page.

API Reference

Installation

The CLI installs the shared @coss/segmented-control registry dependency automatically.

Usage

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.

TabsPanel

Content panel for each tab. Styled wrapper for Tabs.Panel from Base UI.

TabsIndicator

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

Examples

For guidance on choosing between Tabs, Radio Group, Toggle Group, and navigation links, see the Segmented Control pattern.

Tabs use the same optical sizing as segmented controls. The default surface is slightly taller than a Button of the same size so its inset active indicator remains visually balanced alongside adjacent controls.

Small

Large

Underline Variant

Vertical Orientation

Underline with Vertical Orientation

coss.com ui

Built by and for the team of Cal.com, Inc. — the leading commercial open source company (“coss”).