Tabs
A set of layered sections of content — only one panel is visible at a time. Requires Alpine.js.
Usage
Make changes to your account here.
Change your password here.
Composition
code
Tabs
├── TabsList
│ ├── TabsTrigger
│ └── TabsTrigger
├── TabsContent
└── TabsContent
Line variant
Project overview and recent activity.
Traffic and conversion metrics.
Downloadable weekly reports.
Vertical
Workspace name, timezone, and locale.
Password, sessions, and 2FA settings.
Plan, invoices, and payment methods.
API Reference
Tabs
| Prop | Type | Default | Description |
|---|---|---|---|
defaultValue |
string |
— | Initially selected tab value |
value |
string |
— | Alias for initial value |
orientation |
horizontal | vertical |
horizontal |
Layout axis |
as |
string |
div |
Root HTML element |
TabsList
| Prop | Type | Default | Description |
|---|---|---|---|
variant |
default | line |
default |
Visual style |
TabsTrigger / TabsContent
| Prop | Type | Default | Description |
|---|---|---|---|
value |
string |
— | Tab identity (must match between trigger and content) |
Notes
- Consumers need Alpine.js (Livewire includes it)
- Active state is tracked with Alpine
activeon the root