Skip to main content
NavigationLevel 1

Tabs

标签页

WebMobileDesktopDifficulty: Easy

Several peer content sections sit side by side; switching tabs swaps the whole panel — and each one gets its own URL.

01

Live Demo

Actually clickable
  • Went to the beach today and found a really unusual piece of sea glass
  • Spent the whole afternoon shooting, just for this one frame
  • Overcast works too — the light is so soft
Click a tab to swap the whole block below. With many tabs you can scroll sideways on mobile.

What you just saw:Open a user profile on Xiaohongshu (RED) and the top has four tabs — Profile / Videos / Liked / Saved. Tapping one swaps the content below it. That is tabs.

02

What it actually is

The key to tabs is "peer level + has a URL + preserves context". Tapping "Profile" changes the URL to /profile instead of pushing a new screen. Tabs carry different views of the same level.

tabbed interfacetab bartab stripsegmented tabstabbed nav
03

Anatomy · What it's made of

  1. Tab List标签栏

    Laid out horizontally, with an indicator along the bottom

  2. Active Indicator选中指示

    An underline or filled block marking the current tab

  3. Tab标签

    Short label, ideally 1–4 characters

  4. Panel内容面板

    The content region mapped one-to-one with a tab

04

When to Use

When it fits, and when it doesn't
Tabs usage recommendations
SituationUse it?
2–5 peer content sectionsYes
Switching keeps the user in the same page contextYes
Every section has real contentYes
The content has a required order (use a Stepper)No
Two options are mutually exclusive rather than "both worth a look"Depends

Past five tabs, switch to side navigation or a dropdown.

Do not use tabs when switching discards the current edit state — users will assume the content is still there.

05

Similar Patterns

Don't mix these up
Full comparisonTabs vs Segmented ControlI have a set of options to switch between. Tabs or Segmented Control?See the table
06

How to tell AI

Three levels of prompt

Add the component name and specifics

Add tabs to the user profile page: Profile / Posts / Likes. Tapping a tab swaps the content below, and the active tab gets an underline indicator.

07

Don't just say this to AI

Bad → Better

Don't say this to AI

Add a few buttons at the top to switch the stuff below.

Say this instead

Add tabs to the profile page — Profile / Posts / Likes — with a bottom indicator on the active tab and the URL query synced on switch.

08

Share this card

Social-ready

Turn this pattern into a 3:4 or 1:1 knowledge card and export it as PNG right in the browser. No backend needed.