coss.com ui

Tabs

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

API Reference

Installation

The CLI installs the @coss/segmented-control component automatically, because Tabs shares its sizes, icon layout, and indicator surface.

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 Segmented Control.

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

Changelog

  • Oct 20, 2026 — Shared sizing and indicator surface now come from components/ui/segmented-control.tsx
  • Aug 19, 2026 — TabsList size prop and segmented control sizing

coss.com ui

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