Atelier UI

Search components…

Search components…

Drawer

Panel that slides in from a screen edge; the bottom sheet can be dragged down to close.

Edit in sandbox

Copy a prompt for your AI coding tool with the source, dependencies and usage

Props

DrawerProps

Also accepts all props of Omit<React.ComponentProps<"dialog">, "open" | "title">

PropTypeDefaultDescription
open* requiredboolean——
onOpenChange* required(open: boolean) => void——
title* requiredReact.ReactNode——
descriptionReact.ReactNode——
footerReact.ReactNode——
sideSide"right"—
sizenumber400Width for side drawers, height for bottom ones, in px

Install

$ npx shadcn@latest add https://chromotion.dev/r/drawer.json

The CLI installs the base component; your customizations live in the code generated on the Customize tab.

More like this