Drawer

A side panel or bottom sheet that slides in with a slight 3D tilt. Esc and a backdrop click close it, Tab stays inside, and focus returns to the button that opened it.

Install it the shadcn way: copy the source file into your project. It uses CSS 3D, Tailwind CSS v4 and Framer Motion, no WebGL.

Drawer3D props

PropTypeDefaultDescription
openbooleanWhether the drawer is visible.
onClose() => voidCalled when the user asks to close the drawer.
side"right" | "left" | "bottom""right"Edge it slides in from: "right" (default), "left" or "bottom".
titlestringHeading of the drawer. Also names it for screen readers.
descriptionstringShort text shown under the title.
childrenReactNodeContent shown in the body. It scrolls if it is long.
footerReactNodeButtons row pinned to the bottom.
classNamestringExtra classes added to the panel.

More components

Guides

Start

Cards

Scenes

Controls & text

Buttons

More cards

UI elements

Form controls

App components

Text & backgrounds

Showpieces

Blocks