Installation
Usage
Component API
Tabs
Root tabs component. Built on Radix UI Tabs.defaultValue- Default active tabvalue- Controlled active tabonValueChange- Callback when active tab changesorientation- Layout direction ("horizontal"|"vertical")
TabsList
Container for tab triggers.variant- Visual style ("default"|"line")
TabsTrigger
Clickable tab button.value- Unique value for this tabdisabled- Disables this tab
TabsContent
Tab panel content.value- Value that matches the trigger
Examples
Basic Tabs
Line Variant
Underline style tabs:Vertical Tabs
Vertical orientation:Disabled Tab
With Icons
Tabs with icons:Controlled Tabs
With Cards
Tab content in cards:Form Sections
Organize form into tabs:Accessibility
- Full keyboard navigation (arrow keys, Home, End)
- Automatic focus management
- Proper ARIA attributes
- Screen reader support
- Roving tabindex