Visual Guide to Navigation
This page shows how the navigation hierarchy appears in the browser, with real examples.
Basic Structure
Minimal Setup (Single Group)
[π Learn]
βββ Guides
β βββ Getting Started
β βββ Installation
β βββ Quick Start
Configuration:
export const SIDEBAR_NAVIGATION = {
docs: {
defaultTab: { label: "Learn", icon: "π" },
groups: [
{
id: "guides",
label: "Guides",
autoGenerated: true,
},
],
},
};
Multiple Groups
Two Groups (No Tabs)
[π Learn]
βββ Getting Started
β βββ Introduction
β βββ Installation
β βββ Quick Start
βββ Features
β βββ Auto-Generation
β βββ Breadcrumbs
β βββ Icons
βββ Help
βββ FAQ
βββ Troubleshooting
Configuration:
groups: [
{
id: "getting-started",
label: "Getting Started",
entries: [
{ slug: "getting-started/introduction" },
{ slug: "getting-started/installation" },
{ slug: "getting-started/quick-start" },
],
},
{
id: "features",
label: "Features",
autoGenerated: true,
},
{
id: "help",
label: "Help",
autoGenerated: true,
},
];
Tabs Navigation
Two Tabs
[Learn] [API Reference]
β
When "Learn" tab is active:
βββ Getting Started
β βββ Introduction
β βββ Installation
βββ Features
When "API Reference" tab is active:
βββ Endpoints
βββ Authentication
Configuration:
groups: [
// Non-tabbed groups go in default tab
{
id: "getting-started",
label: "Getting Started",
entries: [
{ slug: "getting-started/introduction" },
{ slug: "getting-started/installation" },
],
},
// This becomes a separate tab
{
id: "api",
label: "API Reference",
tab: true,
groups: [
{
id: "endpoints",
label: "Endpoints",
autoGenerated: true,
},
{
id: "authentication",
label: "Authentication",
entries: [{ slug: "api/authentication/oauth" }, { slug: "api/authentication/jwt" }],
},
],
},
];
Three+ Tabs
Documentation Ecosystem
[Getting Started] [User Guide] [API Reference] [Patterns]
β
When "User Guide" tab is active:
βββ Basics
β βββ Installation
β βββ Configuration
β βββ First Steps
βββ Intermediate
β βββ Advanced Setup
β βββ Customization
βββ Advanced
βββ Performance
βββ Security
Nested Groups (No Tabs)
Single Group with Subgroups
[π Learn]
βββ Configuration
βββ Basics
β βββ Overview
β βββ Site Metadata
β βββ Sidebar Structure
βββ Advanced
βββ Nested Groups
βββ Tab Management
βββ Custom Styling
Configuration:
groups: [
{
id: "configuration",
label: "Configuration",
groups: [
{
id: "basics",
label: "Basics",
entries: [
{ slug: "configuration/basics/overview" },
{ slug: "configuration/basics/site-metadata" },
{ slug: "configuration/basics/sidebar-structure" },
],
},
{
id: "advanced",
label: "Advanced",
entries: [
{ slug: "configuration/advanced/nested-groups" },
{ slug: "configuration/advanced/tab-management" },
{ slug: "configuration/advanced/custom-styling" },
],
},
],
},
];
Complex: Tabs + Nested Groups
Realistic Documentation
[Learn] [API Reference] [Patterns] [Help]
β
When "API Reference" tab is active:
π API Reference
βββ Getting Started
β βββ Authentication
β βββ Rate Limiting
β βββ Errors
βββ Endpoints
β βββ (auto-generated subgroups per resource)
β βββ Users
β β βββ List Users
β β βββ Get User
β β βββ Create User
β βββ Posts
β β βββ List Posts
β β βββ Create Post
β βββ Comments
βββ Advanced
βββ Webhooks
βββ Pagination
βββ Filtering
Configuration:
{
id: "api",
label: "API Reference",
tab: true,
groups: [
{
id: "getting-started",
label: "Getting Started",
entries: [
{ slug: "api/getting-started/authentication" },
{ slug: "api/getting-started/rate-limiting" },
{ slug: "api/getting-started/errors" },
],
},
{
id: "endpoints",
label: "Endpoints",
groups: [
{
id: "users",
label: "Users",
autoGenerated: true,
},
{
id: "posts",
label: "Posts",
autoGenerated: true,
},
{
id: "comments",
label: "Comments",
autoGenerated: true,
},
],
},
{
id: "advanced",
label: "Advanced",
entries: [
{ slug: "api/advanced/webhooks" },
{ slug: "api/advanced/pagination" },
{ slug: "api/advanced/filtering" },
],
},
],
}
Breadcrumb Navigation
Each page shows breadcrumbs indicating where you are:
Home > Docs > Getting Started > Installation
All except the current page are clickable:
- Home ->
/docs/ - Docs ->
/docs/ - Getting Started ->
/docs/getting-started/ - Installation -> (current page, not clickable)
Table of Contents
Right sidebar shows page structure:
On page: "Advanced Configuration"
π On This Page
βββ Overview
βββ File Structure
β βββ CSS Files
β βββ TypeScript Files
β βββ Configuration Files
βββ Best Practices
βββ Troubleshooting
Mobile View
On small screens:
- Sidebar becomes a hamburger menu (β‘)
- TOC moves to bottom or is hidden
- Tabs remain clickable at top
- Navigation stays fully functional
β‘ | π | π
Content Area
(Sidebar hidden by default)
Next Steps
Learn to build these structures: