Tabs Navigation
A navigation component that organizes sibling content views at the same hierarchy level and switches panels in place without leaving the page
Table of Contents
Interactive Playground
Tap or drag to interact with the demoWhat is Tabs Navigation?
A navigation component that organizes sibling content views at the same hierarchy level and switches panels in place without leaving the page. It is a core concept in UI Components within UI / UX.
Core Principles
Inspired by physical filing-cabinet dividers, Tabs Navigation organizes sibling views that share the same parent context within a single container. Users can jump between related sections immediately without losing page context or triggering a full navigation cycle.
Whereas a segmented control switches display modes for the same dataset, tabs switch between distinct content panels with their own layouts and concerns.
Practical Takeaways
- Never wrap horizontal tabs into multiple rows: Stacked tab rows obscure which panel is active. Keep labels to 1–2 concise words, and switch to horizontal scrolling, an overflow menu, or vertical tabs when sections grow.
- Sync active tab with the URL: On detail or settings pages, reflect the selected tab in the URL (
?tab=billingor a nested route) so deep links, refreshes, and browser back navigation behave predictably. - Implement WAI-ARIA tab keyboard patterns: Pair
role="tablist",role="tab", androle="tabpanel"witharia-selectedand rovingtabindexso arrow keys move across tabs cleanly.
Notable Examples
- Product detail pages: Separating
Overview,Specs,Reviews, andQ&Awithout overwhelming scroll length. - SaaS settings panels: Vertical left-rail tabs covering
General,Members,Billing, andSecurity. - Developer hubs: Top repository tabs like
Code,Issues,Pull Requests, andActions.