Overlays
Sheet drawer
Sheet drawer: A slide-over panel that springs in from one edge over a dimmed backdrop, holds focus inside, and closes on Escape, the close button, or a pull on its header.
Using Sheet drawer
Sheet drawer uses the card preview frame with a dark theme setting.
Customize the preview
These controls are passed to the demo. Defaults and limits describe the preview; consult the implementation for its full prop API.
| Control | Type | Default | Preview limits |
|---|---|---|---|
side | select | right | Options: right, left, bottom |
width | number | 380 | From 320 to 560; step 10 |
Which frameworks are available for Sheet drawer?
Sheet drawer is available for React, Vue, Svelte, Astro, HTML. The live preview uses React; the source observations below apply to index.tsx. Check the selected port before relying on the same interactions.
What does Sheet drawer depend on?
The React metadata lists these npm dependencies beyond React: motion, radix-ui, clsx, tailwind-merge.
What accessibility details are visible in Sheet drawer?
The React source for Sheet drawer includes: native elements (button); attributes and handlers (aria-hidden, aria-label). These are source observations. Verify accessible names, focus order and keyboard behavior in the composed page.
How does Sheet drawer handle reduced motion?
Sheet drawer reads the motion preference in its React source through useReducedMotion(). Preference-dependent expressions in index.tsx: duration: reduced ? 0 : 0.22; duration: reduced ? 0 : 0.24; travel: reduced ? { duration: 0 } : { type: "spring" as const, stiffness: 320, damping: 34, mass: 0.9 }. Check the full implementation, shared styles and selected port with reduced motion enabled; these observations do not establish that every animation stops.