Studiov0.6.0
Studio/Patterns/Sidebar Navigation

Sidebar Navigation

Navigation

Vertical sidebar with grouped links, collapsible sections, and active state indicators. Used for admin and dashboard layouts.

Code Example

<aside className="w-64 border-r bg-card h-screen sticky top-0 overflow-y-auto">
  <div className="p-4">
    <h3 className="text-xs font-semibold uppercase tracking-wider text-muted-foreground mb-2">
      Section
    </h3>
    <nav className="space-y-1">
      <a href="#" className="flex items-center gap-2 px-3 py-2 text-sm rounded-md bg-primary/10 text-primary">
        Overview
      </a>
      <a href="#" className="flex items-center gap-2 px-3 py-2 text-sm rounded-md text-muted-foreground hover:text-foreground">
        Settings
      </a>
    </nav>
  </div>
</aside>

Variants (2)

Fixed

Always visible sidebar with scrollable content area

collapsible= falseposition= "fixed"

Collapsible

Can be collapsed to icons only

collapsible= trueposition= "fixed"

Guidelines

Do

  • Group related items under section headings
  • Show active state clearly with background and border
  • Make sidebar collapsible on mobile
  • Keep width between 240px-280px

Don't

  • Nest more than 2 levels of navigation
  • Use the sidebar for marketing pages
  • Hide the sidebar toggle on mobile
  • Place actions (buttons, forms) in the sidebar

Use Cases

  • Admin dashboards (RCCS Admin, Marketing Engine)
  • Settings pages with many sections
  • Documentation sites

Details

Category
Navigation
Reference Component
SidebarNav
Variants
2
Guidelines
4 dos, 4 donts
Back to all patterns