Skip to main content

Installation

Usage

Component API

Tabs

Root tabs component. Built on Radix UI Tabs.
Props:
  • defaultValue - Default active tab
  • value - Controlled active tab
  • onValueChange - Callback when active tab changes
  • orientation - Layout direction ("horizontal" | "vertical")

TabsList

Container for tab triggers.
Props:
  • variant - Visual style ("default" | "line")

TabsTrigger

Clickable tab button.
Props:
  • value - Unique value for this tab
  • disabled - Disables this tab

TabsContent

Tab panel content.
Props:
  • 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

API Reference

See the Radix UI Tabs documentation for complete API reference.