Tabs
A set of layered panels of content, each shown in the same place when its tab is picked, the tabs joined in an outline by default.
Content for item 1 goes here.
Usage
Examples
Appearances
appearance paints the joined tabs of a TabsList on the kit's one scale: solid, soft, outline, the default, or transparent, the open tab shaded in each.
Sizes
size on a TabsList steps its tabs' height, words and icons: sm, base (the default, a small Button's 32px) or lg.
Border radius
borderRadius on a TabsList sets its corners on the kit's one scale: none, xs 4px, sm 6px, base 8px, lg 12px, xl 16px, or full to round them. Joined tabs take it at the ends of their row, base by default; under a track each tab takes it, lg by default, on a ground kept square.
With icon
An Icon before a tab's words is drawn at the tab's icon size with a small Button's 8px beside it, and data-icon trims the padding on its side in underline and track tabs.
Wrap
A TabsList keeps its tabs on one line by default; wrap lets them run onto more lines when they are wider than their box.
Orientation
orientation="vertical" stacks the tabs beside their panels, moved through with the up and down arrow keys, beside tabs over their panels as they are by default.
Content for item 1 goes here.
Content for item 1 goes here.
Disabled
disabled on a TabsTrigger dims it and keeps it from being picked, by pointer or by arrow key, beside tabs as they are by default.
API Reference
Tabs
TabsProps · components/Tabs/Tabs.types.tsTabsList
TabsListProps · also takes the props of Radix Tabs.ListTabsTrigger
TabsTriggerProps · takes the props of Radix Tabs.TriggerTabsContent
TabsContentProps · takes the props of Radix Tabs.ContentIt also takes the props of Radix Tabs.Root.