Tabs

A set of layered sections of content—known as tab panels—that are displayed one at a time.

Account

Update your account details.

Installation

CLI

Install the component using the StarUI CLI:

star add tabs

Examples

Line Variant

Underline indicator with Badge and Separator composition

In Stockv4.2

Studio-grade condenser microphone with a wide frequency response and low self-noise floor, designed for vocal recording and live streaming.

Disabled Tab

Blog editor workflow with a disabled Publish trigger

With Icons

Lucide icons inside triggers with auto-sizing

Auto-Indexed

Zero-config pairing — no id or value props needed

API Reference

Component Description
Tabs Main container managing active tab state
TabsList Container for a set of tab triggers
TabsTrigger Clickable tab; use matching id to pair with content
TabsContent Panel content associated with a trigger id