Tabs
A set of layered sections of content that can be switched between using tab controls.
Basic
Add a bottom border to Tabs.List so the active underline sits on a line, as in the product. Set defaultValue on Tabs.Root to pick the tab shown first, or pass value and onValueChange to control it.
With icons
Add flex items-center gap-2 to a trigger to put an icon before its label.
With content
Tabs.Content accepts any layout, such as a grid of metric cards.
Disabled
A disabled trigger can't be selected and is skipped by arrow-key navigation.
Tabs.Root Properties
Value of the tab shown first when uncontrolled
Value of the active tab when controlled
Callback fired when the active tab changes
Orientation of the tabs, used for arrow-key navigation
Default: horizontal
automatic activates a tab when it receives focus. manual waits for Enter, Space or a click.
Default: automatic
Additional CSS classes to apply to the root
Tabs.List Properties
Whether arrow-key focus wraps from the last tab to the first
Default: true
Additional CSS classes to apply to the list
Tabs.Trigger Properties
Value that links the trigger to its content
Whether the tab trigger is disabled
Default: false
Additional CSS classes to apply to the trigger
Tabs.Content Properties
Value of the trigger this content belongs to
Keeps the content mounted while its tab is inactive
Additional CSS classes to apply to the content