What are tabs?
Tabs are a row of labels where each label shows a different section of the same screen. Exactly one tab is selected at a time, and the selected tab is marked by an active indicator (usually a line under it). The sections are siblings: equally important, at the same level, and the user can jump between them in any order.
You’ll usually see tabs used to:
- Split a screen into sections: Overview / Specs / Reviews on a product page.
- Group the same kind of items by status: Active / Delivered / Returns in orders, Upcoming / Past in a travel app.
- Browse categories: Popular / Pizza / Sushi / Burgers… on a restaurant menu (often scrollable).
- Switch between the main areas of an app: the tab bar at the bottom of an iPhone app (Home, Search, Orders, Account).
Anatomy
Material 3 primary tabs with icons
- 1
Tab bar (container)
Holds all tabs in one row, usually right under the top app bar.
- 2
Tab
One destination. The whole area is tappable, at least 48 dp tall on Android.
- 3
Icon (optional)
Supports the label. Icon-only tabs still need an accessible name.
- 4
Label
One or two words naming the section. Must survive long translations.
- 5
Active indicator
The line under the selected tab. It must always match the content shown.
- 6
Badge
A dot or count for new items in that tab. Must update when the count changes.
- 7
Content panel
The section the selected tab shows. Each panel keeps its own scroll and state.
How it differs from similar components
Tabs, segmented controls and bottom navigation all show “pick one of a few”. The difference is what changes when you pick. Using the wrong one is a valid design finding.
| Component | Where | What it switches | Typical use |
|---|---|---|---|
| Tabs (top) | Under the app bar | Sibling sections of one screen | Overview / Specs / Reviews |
| Segmented controlSegmented controlA row of connected buttons where exactly one option is selected at a time.Open in glossary → | Inside the content | Views or filters of the same data | List / Map, Day / Week / Month |
| Bottom navigation / iOS tab bar | Bottom of the screen | The app’s main areas, each with its own history | Home / Search / Orders / Account |
| Stepper / wizard | Top or inline | Steps that must happen in order | Address → Delivery → Payment |
Designs & variants
Each platform styles tabs differently, and each variant has its own weak spots.
Every demo works. Tap the tabs, swipe the Android product page sideways, scroll a list and switch away and back, and try the web one with your keyboard.
Trail runner 2
Trail runner 2, overview
Primary tabs
AndroidMaterial 3 primary tabs sit right under the top app bar and switch between the main sections of one screen. The content can be swiped sideways, and the indicator follows.
Spaghetti carbonara
25 min · 4 servings
- •400 g spaghetti
- •2 eggs + 2 yolks
- •150 g guanciale
- •60 g pecorino
- •Black pepper
- 1.Boil the pasta
- 2.Crisp the guanciale
- 3.Whisk eggs and cheese
- 4.Toss off the heat
- 5.Serve at once
- •Energy · 640 kcal
- •Protein · 28 g
- •Carbs · 74 g
- •Fat · 24 g
- •Salt · 2.1 g
Secondary tabs
AndroidSecondary tabs split one area of content further down the page. The indicator spans the whole tab and the labels stay neutral in color.
- Popular item 1€7.50
- Popular item 2€9.00
- Popular item 3€10.50
- Popular item 4€12.00
- Popular item 5€13.50
- Pizza item 1€7.50
- Pizza item 2€9.00
- Pizza item 3€10.50
- Pizza item 4€12.00
- Pizza item 5€13.50
- Sushi item 1€7.50
- Sushi item 2€9.00
- Sushi item 3€10.50
- Sushi item 4€12.00
- Sushi item 5€13.50
- Burgers item 1€7.50
- Burgers item 2€9.00
- Burgers item 3€10.50
- Burgers item 4€12.00
- Burgers item 5€13.50
- Vegan item 1€7.50
- Vegan item 2€9.00
- Vegan item 3€10.50
- Vegan item 4€12.00
- Vegan item 5€13.50
- Desserts item 1€7.50
- Desserts item 2€9.00
- Desserts item 3€10.50
- Desserts item 4€12.00
- Desserts item 5€13.50
- Drinks item 1€7.50
- Drinks item 2€9.00
- Drinks item 3€10.50
- Drinks item 4€12.00
- Drinks item 5€13.50
- Breakfast item 1€7.50
- Breakfast item 2€9.00
- Breakfast item 3€10.50
- Breakfast item 4€12.00
- Breakfast item 5€13.50
Scrollable tabs
Android / webWhen there are too many tabs for the width, the row scrolls sideways. The selected tab should slide into view, and a cut-off tab at the edge hints that there is more.
Home
- Home row 1
- Home row 2
- Home row 3
- Home row 4
- Home row 5
- Home row 6
- Home row 7
- Home row 8
- Home row 9
- Home row 10
- Home row 11
- Home row 12
- Home row 13
- Home row 14
Search
- Search row 1
- Search row 2
- Search row 3
- Search row 4
- Search row 5
- Search row 6
- Search row 7
- Search row 8
- Search row 9
- Search row 10
- Search row 11
- Search row 12
- Search row 13
- Search row 14
Orders
- Orders row 1
- Orders row 2
- Orders row 3
- Orders row 4
- Orders row 5
- Orders row 6
- Orders row 7
- Orders row 8
- Orders row 9
- Orders row 10
- Orders row 11
- Orders row 12
- Orders row 13
- Orders row 14
Account
- Account row 1
- Account row 2
- Account row 3
- Account row 4
- Account row 5
- Account row 6
- Account row 7
- Account row 8
- Account row 9
- Account row 10
- Account row 11
- Account row 12
- Account row 13
- Account row 14
Tab bar (bottom)
iOSOn iPhone, the main app sections live in a bottom tab bar. Each tab keeps its own scroll position and navigation. Tapping the active tab again scrolls to the top.
Speckled mug
€24.00
Try it: Tab to the tabs, then ← → Home End
Tabs on the web
WebAn ARIA tablist: role tab and tabpanel, aria-selected on the active tab, one Tab stop for the whole row, and arrow keys to move between tabs (automatic activation).
Fixed or scrollable?
- Fixed tabs share the width equally. They work for 2–4 short labels and let users see all options at once. The risk: long labels and translations get cut off.
- Scrollable tabs keep each tab at its natural width and let the row scroll sideways. They suit many or long labels. The risks: users don’t notice there’s more, and the selected tab can end up hidden off-screen.
Check this part
On iPhone, where do you usually find what Android shows as top tabs inside a screen?
What is the main risk of fixed tabs?