Skip to content

Tabs

Make changes to your account here. Click save when you're done.

Terminal window
npx skeci-ui add tabs
import { Tabs, TabsList, TabsTrigger, TabsContent } from '@/components/ui/tabs';
<Tabs defaultValue="account">
<TabsList>
<TabsTrigger value="account">Account</TabsTrigger>
<TabsTrigger value="password">Password</TabsTrigger>
</TabsList>
<TabsContent value="account">Account content here.</TabsContent>
<TabsContent value="password">Password content here.</TabsContent>
</Tabs>

Outline Variant

Content for Tab 1

Filled Variant

Content for Tab 1
PropTypeDefaultDescription
defaultValuestringThe value of the tab that should be active by default.
valuestringThe controlled value of the active tab.
onValueChange(value: string) => voidEvent handler for when the active tab changes.
variant'default' | 'outline' | 'filled''default'The visual style of the tabs.
PropTypeDefaultDescription
valuestring(required)A unique value for the tab.
disabledbooleanfalseWhether the tab is disabled.