bloxa

Drawer

FREE

Panel that slides in from any edge with spring motion and can be dragged closed.

Installation

Terminal
npx @bloxa/cli add drawer
# or: npx shadcn@latest add @bloxa/drawer

Packages installed automatically: motion, radix-ui

Examples

Four sides

Top and bottom close by dragging the handle; side drawers by dragging the panel.

Filter panel

API reference

Every component also accepts the props of the element it renders.

DrawerContent

Drawer has the same API as Dialog.

PropTypeDefaultDescription
side"top" | "right" | "bottom" | "left""right"Edge it slides in from.
sizestring"24rem"Width of left/right drawers.
swipeToClosebooleantrueDrag to close.
showClosebooleantrue× button in the corner.