Measured entry

shadcn-sidebar

sidebarunclassifiedmotion on file

A source-distributed React sidebar system with provider state, desktop collapse modes, a mobile sheet, tooltips, menus, rails, and inset layouts. It is copied into the app and depends on Tailwind theme tokens, shadcn utility and hook conventions, supporting UI primitives, Radix, class-variance-authority, and Lucide.

Specimen
Motion capture of the mounted demo, recorded by the harness. No audio track.
Harness screenshot of shadcn-sidebar at 375 pixels wide
Harness screenshot at 375 pixels wide. No horizontal overflow recorded.
Harness screenshot of shadcn-sidebar at 768 pixels wide
Harness screenshot at 768 pixels wide. No horizontal overflow recorded.
Harness screenshot of shadcn-sidebar at 1440 pixels wide
Harness screenshot at 1440 pixels wide. No horizontal overflow recorded.

Measured

Every value below was written by the harness on the run that produced the frames above. None of it is derived from the prose.

Harness measurements recorded for shadcn-sidebar
BuildOK
MountOK
Console errors0
Uncaught page errors0
Horizontal overflowclean at 375, 768, 1440
Axe critical0
Axe serious0
Axe moderate3
Axe minor0
Gzip marginal59.5 KB (124.9 KB build, 65.4 KB baseline)
Bare modeFAIL
Provider requiredNO
Demo usedwritten from the component source API

What the harness recorded

BARE BUILD

✗ Build failed in 27.92s
error during build:
[vite:load-fallback] Could not load <sandbox>/src/lib/utils (imported by src/cut/components/ui/sidebar.tsx): ENOENT: no such file or directory, open '<sandbox>/src/lib/utils'

Verdict

A capable application-shell foundation for teams already invested in shadcn, with broad composition options and working responsive behavior. It needs a shadcn-style setup and does not mount bare. Review page landmarks when combining SidebarInset with your own main element.

Use it if

  • You already use shadcn conventions and need a responsive application shell with collapsible navigation.
  • You want composable menu, group, badge, rail, footer, and inset primitives that your team can edit locally.
  • You need desktop and mobile sidebar behavior managed through one shared provider.

Skip it if

  • You want a small standalone navigation component without bringing in sheets, tooltips, theme tokens, and supporting primitives.
  • Your project does not use Tailwind or source-owned shadcn components and you cannot budget for adapting its styling and imports.
  • You need landmark-safe page structure without reviewing composition, since the demonstrated nesting creates duplicate and nested main landmarks.

Install

Installation record for shadcn-sidebar
Declared dependenciesradix-ui, class-variance-authority, lucide-react
Missing on installnone
Bare installfails once the shadcn-style helpers are removed, so it needs that setup
Providerno provider required in the harness

A non-shadcn project must add Tailwind and the sidebar theme variables, configure the alias imports, provide the cn utility and mobile hook, install Radix, class-variance-authority, and Lucide, and copy or replace the button, input, separator, sheet, skeleton, and tooltip primitives. It must also run as a client component.

Source and credit

This page is a review, not a copy. The component source lives with its author and this site does not republish it. Read the license before you use anything.

Author repository

github.com/shadcn-ui/ui
License
MIT
Record published
2026-08-13

Alternatives

Other published entries for the sidebar pattern, ordered by what they measured: mounts first, then clean axe scans, then bare-mode passes, then the smaller bundle.