The Tabs component provides a way to organize content into different sections that can be accessed one at a time. It follows WAI-ARIA guidelines and includes full keyboard support and proper ARIA attributes.
When to use
Organizing related content into sections
Switching between different views
Form sections
Product details pages
Settings panels
Dashboard sections
Usage
Props
Tabs
Prop
Type
Default
Description
class
string
undefined
Optional CSS class name
TabsList
Prop
Type
Default
Description
class
string
undefined
Optional CSS class name
TabsTab
Prop
Type
Default
Description
id
string
Required
Unique identifier for the tab
controls
string
Required
ID of the panel this tab controls
selected
boolean
false
Whether this tab is initially selected
class
string
undefined
Optional CSS class name
TabsPanel
Prop
Type
Default
Description
id
string
Required
Unique identifier for the panel
labelledby
string
Required
ID of the tab that labels this panel
selected
boolean
false
Whether this panel is initially visible
class
string
undefined
Optional CSS class name
Accessibility features
Proper ARIA roles (tablist, tab, tabpanel)
Keyboard navigation:
Left/Right arrows to move between tabs
Tab/Shift+Tab for focus management
Clear focus indicators
Proper ARIA states (aria-selected, aria-controls, aria-labelledby)