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

Updated