Tabs
Switching which panel is visible. One namespace covers the strip and the tabs in it (ADR 0009): the strip is .tabs, a tab is .tabs-item.
| Class | Effect | Type |
|---|---|---|
.tabs | Switching which panel is visible. One namespace covers the strip and the tabs in it (ADR 0009): the strip is .tabs, a tab is .tabs-item. | root |
.tabs-border.tabs-box.tabs-lift | Sets variant, one class per value. | axis variant |
.tabs-top.tabs-bottom | Sets placement, one class per value. | axis placement |
.tabs-xs.tabs-sm.tabs-md.tabs-lg.tabs-xl | Sets size, one class per value. | axis size |
.tabs-indicator | Drawn by the component; you never opt into it. | part |
.tabs-item | One tab in the strip. The component draws it from the tabs data. | part |
.tabs-item-active | The selected tab. Written from the active index, alongside aria-selected. | part |
.tabs-item-content | The panel a tab reveals. It must follow its tab immediately — the CSS reaches it with +. | part |
.tabs-item-disabled | Unreachable, and drawn as such. | part |