A set of layered sections of content—known as tab panels—that are displayed one at a time.
Installation
Usage
<Tabs Value="account" Class="w-[400px]">
<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>Composition
Use the following composition to build Tabs:
Tabs
├── TabsList
│ ├── TabsTrigger
│ └── TabsTrigger
├── TabsContent
└── TabsContentLine
Use the variant="line" parameter on TabsList for a line style.
Vertical
Use orientation="vertical" for vertical tabs.
Disabled
Icons
RTL
To enable RTL support in Blazix, see the RTL configuration guide.
Translated with AI for the demo, so it may have mistakes.
API Reference
Tabs
Other attributes are passed to the element it renders.
TabsContent
Other attributes are passed to the element it renders.
TabsList
Other attributes are passed to the element it renders.
TabsTrigger
Other attributes are passed to the element it renders.