Drawer
A panel that slides in from any edge of the screen. Left, right, and bottom variants - each with spring-eased entry, backdrop blur, scroll-lock, and Escape to close. The bottom drawer includes a drag handle and works great for action sheets and verification flows.
Installation
npx stepwise-ui add drawer
Side drawer
Bottom drawer
Slides up from the bottom edge - a natural fit for action sheets, filters, or (paired with OtpInput) verification flows.
Props
PropTypeDescription
openbooleanControls visibility.
onClose() => voidCalled on backdrop click or Escape.
side"left" | "right" | "bottom"Which edge the panel slides from. Default "right".
titlestringHeader title. Omit to hide the header.
widthnumberWidth for left/right drawers (px). Default 360.
heightnumber | "auto"Height for bottom drawer. Default "auto" (max 100dvh − 40px).
childrenReactNodeContent inside the drawer.