build69
build69  /  Components  /  Navigation  /  Tabs

Tabs

v1.0.3Updated 20 Jul 2026

Tabbed content panels (Radix). Use for switching between related views in the same context. Adds pills / underline / segmented / enclosed visual variants, closable + addable tabs, overflow scroll, sticky header, and coun

Preview

Live · 17 stories
DefaultOpen ↗
Why this is recommendedtabsnavigationswitchpills+4

The default, out-of-the-box Tabs.

Recommended for+14
  • Settings sub-sections
  • Detail page sub-views
  • Switching dashboard slices
  • Editor tab strips (closable / addable)
  • Tonal navigation
Tags+6
tabsnavigationswitchpillssegmentedenclosedclosabledefault
Features+4
  • Horizontal / vertical
  • Keyboard navigation
  • Default and controlled value
  • Variants: pills / underline / segmented / enclosed
  • Closable tabs (with x button)
  • Addable tabs (+ button)
  • Horizontal scroll on overflow
  • Sticky tab strip
  • Counts + badges per trigger
  • i18n: labels prop overrides the scroll / add / close button aria-labels (DEFAULT_TABS_LABELS)
Not recommended for−2
  • Top-level navigation (use Sidebar/Topbar)
  • Single tab (use a section heading)

Install

Ask your agent, or call the MCP tool directly. The resolved bundle is written into your project.

get_registry_item({ name: "Tabs" })

Usage

import { Tabs } from '@/components/data-display/tabs';

<Tabs variant="pills" tabs={[{ id: 'overview', label: 'Overview', count: 4 }]} />

Tick variants in the left menu — each adds a tab with that variant’s real story source, the same code the preview above renders.

Props

PropTypeRequired
value

Active tab

string
onValueChange

Value change callback

function
variant

Visual style

'pills' | 'underline' | 'segmented' | 'enclosed'
tabs

Declarative tab definitions (alternative to children)

TabItem[]
closable

Show close button per tab

boolean
addable

Show + button at end of strip

boolean
sticky

Sticky tab strip

boolean
labels

Override built-in UI strings (scroll-chevron, add-tab and close-tab aria-labels) for i18n; English defaults exported as DEFAULT_TABS_LABELS

Partial<TabsLabels>

Related