Components
- Accordion
- Add to Cart
- Animated List
- Carousel
- Collapsible Sidebarnew
- Dynamic Island
- Expandable Cardnew
- Expanding Searchnew
- Filter Grid
- Kanban Board
- Layout Switcher
- Morphing Popover
- Number Flip
- Page Transition
- Product Gallery
- Segmented Control
- Sortable Table
- Stack Navigator
- Status Button
- Step Wizard
- Tabs
- Text Morphnew
- Theme Mode Switch
- Theme Morph Button
- Theme Toggle Button
- Theme Toggle Switch
- Theme Transition
- Toast Stacknew
$24 / month
For teams shipping to production every day.
- Unlimited projects
- Email support
- 100 GB storage
Installation
$ pnpm dlx shadcn@latest add @transition-kit/tabsUsage
import {
Tabs,
TabsContent,
TabsList,
TabsTrigger,
} from "@/components/transitions/tabs";<Tabs defaultValue="account">
<TabsList>
<TabsTrigger value="account">Account</TabsTrigger>
<TabsTrigger value="password">Password</TabsTrigger>
</TabsList>
<TabsContent value="account">Account settings.</TabsContent>
<TabsContent value="password">Change your password.</TabsContent>
</Tabs>API Reference
Tabs
| Prop | Type | Default | Description |
|---|---|---|---|
value | string | - | Controlled active tab value. |
defaultValue | string | "" | Initial active tab when uncontrolled. |
onValueChange | (value: string) => void | - | Called with the next value after a tab change. |
variant | "pill" | "underline" | "pill" | Indicator style for the tab list. |
TabsTrigger / TabsContent
| Prop | Type | Default | Description |
|---|---|---|---|
value | string | - | Identifies the trigger and its panel; selecting a trigger shows its panel. |