Dialog Drawer
- from @alexandrejoly
A responsive Dialog: a centered Dialog at desktop that becomes a swipeable Drawer below 768px. Drop-in replacement for the shadcn Dialog on Base UI or Radix: desktop props 1:1 on the root and every part, open state kept across the breakpoint, footer close button on both sides, plus a drawer={{...}} override typed on your Drawer.
Install
New to shadcn? Set up your project
If your project already has a shadcn components.json, skip initialization. Otherwise, run this once from your project root.
pnpm dlx shadcn@latest initpnpm dlx shadcn@latest add @alexandrejoly/dialog-drawerComponent source
No live preview has been built for this component yet.
Registry dependencies4
- dialog
- drawer
- button
- use-mobile
Packages0
No npm packages are installed with it.
