Tabs
Organize content into multiple panels with tab navigation
Preview
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.
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.
Projects
12
Team Members
48
Vertical Underline
Combine vertical layout with underline styling.
$12.5K
Revenue
342
Orders
98.3%
Uptime
Vertical Underline with Sides
Vertical tabs with side-positioned underlines.
Vertical Tabs - Left Side (Default)
$12.5K
Revenue
342
Orders
98.3%
Uptime
Vertical Tabs - Right Side
$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.