Popover Drawer
- from @alexandrejoly
A responsive Popover: an anchored Popover at desktop that becomes a swipeable Drawer below 768px. Drop-in replacement for the shadcn Popover on Base UI or Radix: desktop props 1:1 on the root and every part, Anchor included on Radix, open state kept across the breakpoint, 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/popover-drawerComponent source
No live preview has been built for this component yet.
Registry dependencies3
- popover
- drawer
- use-mobile
Packages0
No npm packages are installed with it.
