Components › Navigation › Tabs › Tab strip

Tab strip

canon

Controlled tablist that scrolls and fades when the tabs do not fit; no overflow menu, no disabled tab.

Used in 10 files · 7 areas · 10× — components/record, components/setkani, pages/ClenTymuPage, pages/MeetingDetailPage, pages/ProjectDetailPage, pages/TrashPage …

Default

components--tab-strip--defaultOpen standalone ↗Code

Variants

labels only — the plain strip
with icons — for a record where the tabs are kinds of content
with counts — the number is how much is inside; zero is shown, not hidden (hiding empty tabs is Record tabs' job, not the strip's)
components--tab-strip--variantsOpen standalone ↗Code

States

active — the underline and the darker label; click another tab and it moves
overflow — more tabs than fit: the strip scrolls, the edge fades and a chevron appears on the side that has more; click it to nudge by ~60 % of the width
one tab — the strip still renders; a single tab means the switch has nothing to offer and usually should not be there at all
components--tab-strip--statesOpen standalone ↗Code

With icon & kbd

icon on the left, count on the right — both are slots of the same row, and both are optional
Tabs carry no keyboard shortcut chips. Tab lands on the active tab, arrows and Home/End move focus, and Enter or Space switches (see the Accessibility tab).
components--tab-strip--with-icon-and-kbdOpen standalone ↗Code

Composition

Josef Novák
Obsah záložky „“ — the strip sits under the record's top bar and switches only the content below it.
components--tab-strip--compositionOpen standalone ↗Code