Drawer

Side panel that slides in from the left or right with a spring, backdrop blur, body scroll lock and esc-to-close.

Preview

Install

Add it with the shadcn CLI, or copy the source manually.

$ bunx --bun shadcn add @beui/drawer

API Reference

open
boolean
onOpenChange
(open: boolean) => void
side?
"left" | "right"
right
className?
string

Class for the panel surface.

backdropClassName?
string

Class for the backdrop.

ariaLabel?
string
dismissable?
boolean

Close when the backdrop is clicked. Default true.

true

Keep in mind

Some components on this site are inspired by or recreated from existing work across the web. I'm not here to take credit; just to learn, experiment, and sometimes push things a bit further. If something looks familiar and I forgot to mention you, reach out and I'll fix that right away.

Updated