For the complete documentation index, see llms.txt. Markdown variants are available by appending .md to any URL or sending an Accept: text/markdown header. An agent skill is available at /.well-known/agent-skills/site-skill.md.
Shadcn Labs/

Tabs

The active pill glides to the selected tab and the panel slides in the direction you moved. A React component built on View Transitions, installed with the shadcn CLI.

$24 / month

For teams shipping to production every day.

  • Unlimited projects
  • Email support
  • 100 GB storage

Installation

$ pnpm dlx shadcn@latest add @transition-kit/tabs

Usage

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

PropTypeDefaultDescription
valuestring-Controlled active tab value.
defaultValuestring""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

PropTypeDefaultDescription
valuestring-Identifies the trigger and its panel; selecting a trigger shows its panel.