Animated Drawer
Overview
A drawer panel that slides in smoothly for menus, settings, and sidebars.
This overlay component is intended for interfaces that need a drawer panel that slides in smoothly for menus, settings, and sidebars, settings workflows, and mobile navigation. Its implementation is provided as editable source so the final behavior and styling stay inside your project.
Technologies
Detected package dependencies: lucide-react, motion, vaul, react-use-measure.
Installation
Usage
The live preview and its Code tab above are the working example for this component. Copy the example after installation, then provide the required values from its TypeScript signature.
Props
| Prop | Type | Required | Description |
|---|---|---|---|
| — | No shared Props type | — | The installable source does not expose one shared custom prop contract. Review the exported TypeScript signatures for the individual variants shown on this page. |
Use cases
- interfaces that need a drawer panel that slides in smoothly for menus, settings, and sidebars
- settings workflows
- mobile navigation
Features
- Copy-paste source that remains in your repository
- TypeScript source included with the component
- Tailwind CSS classes editable in the component source
- Animation implemented with Motion
- shadcn/ui dependencies: local UI primitives
- Responsive Tailwind variants present in the source
Accessibility
- No reduced-motion marker was detected; add or verify a reduced-motion path before production use.
- Test focus order, keyboard operation, labels, contrast, and screen-reader output in the final application context.
Customization
- Edit the Tailwind utility classes in the copied source to match your spacing, color, and typography tokens.
- Edit the copied source directly for visual or structural changes.
- Adjust Motion transitions in the source and keep the reduced-motion behavior aligned with the final interaction.
Related components
Topic guides
See how this component fits into broader interface patterns, implementation decisions, and working examples.
Animated Drawer FAQ
Is Animated Drawer free to use in commercial projects?
Yes. The public Animated Drawer source is available under the Apache License 2.0, including for commercial use, subject to the LICENSE terms.
How do I install Animated Drawer?
Run npx shadcn@latest add @spectrumui/animated-drawer. The page also exposes the source for manual installation.
Does Animated Drawer require Motion?
Yes. Motion usage was detected in the documented source or registry dependencies for Animated Drawer.
Does Animated Drawer use shadcn/ui or Radix UI?
Animated Drawer uses local shadcn/ui primitives.
Can I use Animated Drawer in Next.js?
The documented React source is used in this Next.js application. Keep its use client directive when copying it into the App Router. Install the detected dependencies and verify any application-specific data or image configuration.
What accessibility checks should I run for Animated Drawer?
No component-specific accessibility mechanism was detected automatically. Test keyboard operation, focus, labels, contrast, and screen-reader output before shipping.