Tabs

Organize content into multiple panels with tab navigation

Preview

Account Settings
Manage your account preferences
EmailVerified
PlanPro

Installation

npx shadcn@latest add @cubby-ui/tabs

Usage

import {
  Tabs,
  TabsContent,
  TabsList,
  TabsTrigger,
} from "@/components/ui/cubby-ui/tabs";
<Tabs>
  <TabsList>
    <TabsTrigger />
  </TabsList>
  <TabsContent />
</Tabs>

Examples

Controlled

Manage active tab state externally.

Dashboard Overview
Live
Active tab: overview

Total Revenue

$45,231.89

Subscriptions

+2350

Underline Variant

Use underline style for tab indicators.

Dashboard Overview

Monitor your key metrics and performance indicators

128

Active Users

89%

Completion

24

Tasks

Vertical Layout

Display tabs in a vertical orientation.

Overview
Your workspace at a glance

Projects

12

Team Members

48

Vertical Underline

Combine vertical layout with underline styling.

Overview
Your workspace at a glance

$12.5K

Revenue

342

Orders

98.3%

Uptime

Vertical Underline with Sides

Vertical tabs with side-positioned underlines.

Vertical Tabs - Left Side (Default)

Overview
Your workspace at a glance

$12.5K

Revenue

342

Orders

98.3%

Uptime

Vertical Tabs - Right Side

Overview
Your workspace at a glance

$8.2K

Revenue

156

Orders

99.1%

Uptime

API Reference

The Tabs component is built on top of Base UI's Tabs. All Base UI props are supported. The documentation below only covers custom props and modified defaults specific to our implementation.

For the complete Base UI API, see the Base UI Tabs documentation.

Custom Props

TabsList

Prop

TabsContent

Prop