Skip to main content
BlocksSidebarFloating dashboard sidebar with site switcher

shadcn/ui Sidebar block for Base UIFloating dashboard sidebar with site switcher

A floating-variant shadcn/ui Sidebar for warehouse and operations dashboards that collapses to icons and expands nested sections with Collapsible and SidebarMenuSub. It includes a notifications DropdownMenu with Avatar entries, an animated header powered by motion/react, and a multi-site switcher built on DropdownMenu with keyboard shortcuts. Great for multi-location admin panels that want a detached, card-like navigation panel.

Pro@shadcnpro/base/sidebar-03

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 Floating dashboard sidebar with site switcher from one prompt. It is included in every Pro plan.

Add the shadcn/ui components

Floating dashboard sidebar with site switcher uses Avatar, Button, Collapsible, Dropdown Menu, Sidebar and Tooltip, from the Base UI components set up in your components.json.

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

Install the npm packages

npm install lucide-react motion

Copy the code

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

components/sidebar-03/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-03/.

Usage
import Sidebar03 from '@/components/sidebar-03';
<Sidebar03 />

Overview

Floating dashboard sidebar with site switcher is a Pro sidebar block for shadcn/ui and Base UI. It is built from the Avatar, Button, Collapsible, Dropdown Menu, Sidebar and Tooltip 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
Base UI (@base-ui/react)
Also available for
Radix UI, React Aria
npm packages
lucide-react, motion
Files
6 files in components/sidebar-03/
Access
Included in every plan

Frequently asked questions

Pricing, installation and Base UI details for Floating dashboard sidebar with site switcher.