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.



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.
| Build | OK |
|---|---|
| Mount | OK |
| Console errors | 0 |
| Uncaught page errors | 0 |
| Horizontal overflow | clean at 375, 768, 1440 |
| Axe critical | 0 |
| Axe serious | 0 |
| Axe moderate | 3 |
| Axe minor | 0 |
| Gzip marginal | 59.5 KB (124.9 KB build, 65.4 KB baseline) |
| Bare mode | FAIL |
| Provider required | NO |
| Demo used | written 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
| Declared dependencies | radix-ui, class-variance-authority, lucide-react |
|---|---|
| Missing on install | none |
| Bare install | fails once the shadcn-style helpers are removed, so it needs that setup |
| Provider | no 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/uiAlternatives
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.
- magicui-file-treebento
- Renders
- YES
- A11y
- 0
- Gzip
- 45.4KB
- Bare
- fail
- Prov
- NO
- shadcn-block-sidebar-13minimal-flat
- Renders
- YES
- A11y
- 0
- Gzip
- 59.4KB
- Bare
- fail
- Prov
- NO
- tripled-animated-sidebar-shadcnuiminimal-flat
- Renders
- YES
- A11y
- 1
- Gzip
- 64.4KB
- Bare
- pass
- Prov
- NO
- shadcn-block-sidebar-14minimal-flat
- Renders
- YES
- A11y
- 2
- Gzip
- 58.4KB
- Bare
- fail
- Prov
- NO
- shadcn-block-sidebar-04minimal-flat
- Renders
- YES
- A11y
- 2
- Gzip
- 58.6KB
- Bare
- fail
- Prov
- NO
- shadcn-block-sidebar-03minimal-flat
- Renders
- YES
- A11y
- 2
- Gzip
- 58.7KB
- Bare
- fail
- Prov
- NO