Skip to main content
BlocksSidebarInset dashboard sidebar with icon collapse and nested routes

shadcn/ui Sidebar blockInset dashboard sidebar with icon collapse and nested routes

An inset-variant shadcn/ui Sidebar that collapses to an icon rail, with nested route groups built from Collapsible, SidebarMenuSub and SidebarMenuSubButton. The header pairs a brand logo with a notifications DropdownMenu and SidebarTrigger animated via motion/react, while the footer hosts a workspace switcher using DropdownMenu and Avatar-style logos. Suited to SaaS dashboards with deep navigation hierarchies.

Pro@shadcnpro/sidebar-02

Preview

Installation

Part of shadcn/ui Pro

Pro unlocks the source code and one-command install of all 439 blocks, plus the Figma kit, themes and the MCP server for your AI editor.

Let your AI editor install it

The shadcn/ui Pro MCP server lets Cursor, Claude Code and VS Code find and install blocks like Inset dashboard sidebar with icon collapse and nested routes from one prompt. It is included in every Pro plan.

Add the shadcn/ui components

Inset dashboard sidebar with icon collapse and nested routes uses Avatar, Button, Collapsible, Dropdown Menu and Sidebar.

npx shadcn@latest add avatar button collapsible dropdown-menu sidebar

Install the npm packages

npm install lucide-react motion

Copy the code

Paste it into components/sidebar-02/index.tsx.

components/sidebar-02/index.tsx

Part of shadcn/ui Pro

Pro unlocks the source code and one-command install of all 439 blocks, plus the Figma kit, themes and the MCP server for your AI editor.

Use it

Multi-file block: 6 files are installed under components/sidebar-02/.

Usage
import Sidebar02 from '@/components/sidebar-02';
<Sidebar02 />

Overview

Inset dashboard sidebar with icon collapse and nested routes is a Pro sidebar block for shadcn/ui. It is built from the Avatar, Button, Collapsible, Dropdown Menu and Sidebar components with lucide-react and motion, and installs as 6 files you own and can edit.

It only uses semantic tokens such as bg-background, text-muted-foreground and border-border, so it follows your theme, radius and fonts and switches with dark mode. It is responsive from desktop to mobile; the width controls above the preview show each size. The same layout is in the shadcn/ui Pro Figma kit, so design and code start from one source.

Category
Sidebar
Component library
Radix UI (radix-ui)
Also available for
Base UI, React Aria
npm packages
lucide-react, motion
Files
6 files in components/sidebar-02/
Access
Included in every plan

Frequently asked questions

Pricing, installation and Radix UI details for Inset dashboard sidebar with icon collapse and nested routes.