Tabs
A set of layered sections of content—known as tab panels—that are displayed one at a time.
Preview
Make changes to your account here.
Installation
bash
npx auralix-ui add tabsUsage
Basic Tabs
tsx
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">Make changes to your account here.</TabsContent>
<TabsContent value="password">Change your password here.</TabsContent>
</Tabs>Props
| Name | Type | Default | Description |
|---|---|---|---|
defaultValue | string | - | The value of the tab to activate by default. |
children | ReactNode | - | TabsList and TabsContent components. |
Variants
Pill
Line
Segmented
On this page