Overlays
Drag Dismiss Bottom Drawer
Drag Dismiss Bottom Drawer: A panel that slides in from an edge with a small drag handle, tracks a finger or pointer drag with rubber-band resistance, and either snaps back open or dismisses depending on how far it is pulled.
Using Drag Dismiss Bottom Drawer
Drag Dismiss Bottom Drawer uses the card preview frame with a light/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 |
|---|---|---|---|
edge | select | bottom | Options: bottom, top, left, right |
showHandle | boolean | true | No additional limit in the metadata. |
accentColor | color | #9BE15D | No additional limit in the metadata. |
Which frameworks are available for Drag Dismiss Bottom Drawer?
Drag Dismiss Bottom 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 Drag Dismiss Bottom Drawer depend on?
The React metadata lists these npm dependencies beyond React: motion, radix-ui.
What accessibility details are visible in Drag Dismiss Bottom Drawer?
The React source for Drag Dismiss Bottom 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 Drag Dismiss Bottom Drawer handle reduced motion?
Drag Dismiss Bottom Drawer reads the motion preference in its React source through useReducedMotion(). Preference-dependent expressions in index.tsx: duration: reduced ? 0 : 0.22; spring: reduced ? { duration: 0 } : { type: "spring" as const, stiffness: 340, damping: 32, 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.