Tabs
Switches between related panels of content in the same place.
01Anatomy
5 parts. Select a number or a name to see what each part does.
01 · Tab list
The row that holds all the tabs, often with a line under it.
- Required
- Yes
02 · Tab
One label for one panel.
- Required
- Yes
- Recommended
- One or two words. Same tone and length across the row.
03 · Selected indicator
Marks the selected tab: a line, a fill or a heavier weight.
- Required
- Yes
04 · Badge
A count or a status next to the label.
- Required
- No
05 · Tab panel
The content of the selected tab. Only one is visible.
- Required
- Yes
Example spacing, measured on this drawing (16 px = 1 em). A common implementation, not a rule: values change from system to system. W and H are width and height, as in Figma: Hug follows the content, Fill takes the space of the parent.
Spacing is measured on the normal view: switch back to Normal to show it.
02Structure
- Tabsauto layoutvertical
- Tab listauto layouthorizontalstroke bottom
- Tabinstancerepeatedhugpadding V 12H 16
- Iconinstanceboolean
- Labeltext
- Badgeinstanceboolean
- Indicatorrectanglefillboolean
- Panelslot or frame
| Property | Type | Values |
|---|---|---|
| Selected | Boolean (Tab) | truefalse |
| State | Variant (Tab) | DefaultHoverFocusDisabled |
| Badge | Boolean (Tab) | truefalse |
| Orientation | Variant (Tabs) | HorizontalVertical |
| Label | Text (Tab) | Overview |
Two components: Tab, and Tabs that repeats it. Selected lives on Tab.
03States
04Variants
05Responsive behaviour
All tabs in one row.
Tabs scroll sideways, become a select, or the panels become an accordion. Varies by design system.
There is no single correct anatomy: names, variants and properties differ from one design system to another. These are common structural models distilled from established design systems and accessibility guidance.
Proven methods for designing interfaces with AI. Every two weeks, in Italian.
Subscribe