Measured entry

shadcn-drawer

sheetunclassifiedmotion on file

A client-side React drawer composed as source code around Vaul primitives. It ships overlay, portal, trigger, close, content, header, footer, title, and description wrappers, with Tailwind classes and a local cn utility providing the styling layer.

Specimen
Motion capture of the mounted demo, recorded by the harness. No audio track.
Harness screenshot of shadcn-drawer at 375 pixels wide
Harness screenshot at 375 pixels wide. No horizontal overflow recorded.
Harness screenshot of shadcn-drawer at 768 pixels wide
Harness screenshot at 768 pixels wide. No horizontal overflow recorded.
Harness screenshot of shadcn-drawer 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-drawer
BuildOK
MountOK
Console errors0
Uncaught page errors0
Horizontal overflowclean at 375, 768, 1440
Axe critical0
Axe serious0
Axe moderate0
Axe minor0
Gzip marginal48.6 KB (114.0 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 30.57s
error during build:
[vite:load-fallback] Could not load <sandbox>/src/lib/utils (imported by src/cut/components/ui/drawer.tsx): ENOENT: no such file or directory, open '<sandbox>/src/lib/utils'

Verdict

A solid choice inside an existing shadcn-style app: it built, mounted, adapted across the tested viewports, and produced no reported accessibility violations. It needs a shadcn-style setup because the bare project cannot resolve its local utility import.

Use it if

  • You want a swipe-aware modal drawer that can open from any screen edge.
  • Your app already uses shadcn conventions, Tailwind theme tokens, and a cn class-merging helper.
  • You prefer owning a small wrapper layer while Vaul handles drawer behavior and accessibility.

Skip it if

  • You need a drop-in package with self-contained styles and no project aliases.
  • You want to avoid the added client bundle cost of the Vaul interaction layer.
  • Your interface only needs a static side panel without modal or drag behavior.

Install

Installation record for shadcn-drawer
Declared dependenciesvaul
Missing on installnone
Bare installfails once the shadcn-style helpers are removed, so it needs that setup
Providerno provider required in the harness

In a non-shadcn project, add Vaul, provide the cn class-merging utility or replace its calls, configure the local import alias, and supply Tailwind with the referenced theme tokens, variants, and animation utilities.

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-14

Alternatives

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