Components
Tabs
Tabbed content switcher (Base UI Tabs) that composes TabsList /
TabsTrigger / TabsContent.
Provides shared variant/size/fullWidth through context so the parts stay
in sync, and tracks the active value to drive the sliding TabsIndicator.
Controlled via value/onValueChange, uncontrolled via defaultValue.
Usage
Best practices
Reach for
Tabsto swap in-page panels viaTabsContent; when each tab is a route, useTabNavigationinstead (renders links, no panels).Compose
TabsList/TabsTrigger/TabsContent- sharedvariant/size/fullWidthflow through context, so set them onTabs, not each trigger.
Props
Tabs
TabsContent
TabsList
TabsPanel
TabsTrigger
Also exports
- const
tabsAnatomy
Anatomy
Composition
Builds on
Dot, Flex, Icon, ScrollArea
Used by