Skip to content

Tabs

Minimalist tab variants: underline, segment, pill.


Classes

ClassPurpose
.tabsRoot container
.tabs--underlineUnderline active indicator
.tabs--segmentRecessed track with raised active
.tabs--pillPill-shaped active background
.tabs__listTab button row (flex)
.tabs__tabTab button
.tabs__tab--activeActive state
.tabs__iconTab icon
.tabs__panelContent panel

Variants

Underline

Oversigt over systemets status.

Segment

Vue 3 komponentbibliotek.

Pill

Viser alle komponenter.


Accessibility

  • Tab list: role="tablist"
  • Tabs: role="tab", aria-selected, aria-controls, tabindex
  • Panels: role="tabpanel", aria-labelledby
  • Keyboard: Arrow keys cycle, Enter/Space activates
  • Never disable tabs — remove them or explain empty content