Sidebar
Application navigation in a side column that collapses to an icon rail on desktop and becomes a sheet on mobile.
Paste this into your agent.
Sidebar holds the primary navigation of an app with many sections, grouped under labels, with workspace and account menus at the ends. It handles desktop collapse, an optional resize rail and the mobile sheet. For a full page frame with header and scrolling content, start from Dashboard Shell.
Install
bashnpx shadcn@4.18.0 add @siteplane/sidebar
Import it from @/siteplane/components/sidebar. The project needs Siteplane UI's one-time setup first: .
When to pick it
- vs : Pick Dashboard Shell instead when you want the sidebar, sticky header and scrolling main area wired together.
- vs : Pick Navigation Menu instead for a handful of top-level pages that fit in a header row.
- vs : Pick Drawer for a standalone mobile menu without a desktop sidebar.
Rules
- Place the Sidebar and its neighbouring content inside one SidebarProvider, which holds the open state.
- Read the sidebar_state cookie on the server and pass it as defaultOpen; the provider writes the cookie but never reads it.
- Set active on the SidebarMenuButton for the current page and pass a router link through render.
- Give each SidebarMenuButton a tooltip so the collapsed icon rail still names its destinations.
- Turn off keyboardShortcut on any secondary sidebar so only the main one answers Ctrl/Cmd+B.
- Keep the padding on SidebarHeader, SidebarGroup and SidebarFooter; it draws the leading gutter.
Reference
Add to your agent
Print this skill from the terminal, or connect the whole catalog over MCP. Setup guides
CLI
MCP server
Questions
Related skills
Siteplane Dashboard Shellby UI Skillbook
A responsive app frame that combines the sidebar, a sticky top bar and a scrolling content area.
Siteplane UI
React Native Best Practicesby callstackincubator
React Native performance optimization guidelines for FPS, TTI, bundle size, memory leaks, re-renders, and animations.
ResponsiveExternalGitHub stars: 1.7K
Responsive Breakpoint Strategyby UI Skillbook
Choose breakpoints based on where your content actually breaks, not a fixed device-width list.
Responsive
Siteplane Filter Barby UI Skillbook
A layout strip above a list or table for view tabs, search, filter menus, actions and applied-filter tags.
Siteplane UI