TabStrip Component Demo
Default
Active index:
0 — selected label: Overview.Positions
borderlessActive index:
0 — selected label: Overview.Spacing
gap pad borderlessActive index:
0 — selected label: Overview.gap inserts bordered cells (rem) between tabs; pad adds
bordered cells before the first / after the last tab. The base line runs continuously through
every spacer cell (the spacer cells carry only that line, so borderless drops it
cleanly with no stray edges); both default to 0 (flush). For vertical room use height (below). Edit the fields above to see it live.For vertical room, set height (rem) — the strip's total height. The tab row
bottom-aligns to the base line and the extra space breathes above; size still sets
the tab height. Here a 3rem bar with md (2rem) tabs + 1rem side cells:
Active surface
By default the active tab is transparent — it reveals whatever surface the strip
sits on. When the strip sits in a container whose background differs from the content below,
set activeSurface to that content's colour so the active tab flows into it and the
base line disappears under it. Below, the strip sits on a tinted chrome bar; the active tab
matches the --ui-color-background panel underneath.
Content panel — the active tab reads as one surface with this area.
Sizes
borderlessActive index:
0 — selected label: Dashboard.Active index:
0 — selected label: Dashboard.Active index:
0 — selected label: Dashboard.Variants
gap pad borderlessActive index:
1 — selected label: Details.Active index:
1 — selected label: Details.Active index:
1 — selected label: Details.Active index:
1 — selected label: Details.Active index:
1 — selected label: Details.Active index:
1 — selected label: Details.Active index:
1 — selected label: Details.Active index:
1 — selected label: Details.