Search documentation, components, and switch theme.
A drawer component that slides in from the edge of the screen.
npx shadcn@latest add @formance/drawer
npm install vaul
import { Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerTitle, DrawerTrigger, } from '@/components/ui/drawer'
<Drawer> <DrawerTrigger>Open</DrawerTrigger> <DrawerContent> <DrawerHeader> <DrawerTitle>Edit Settings</DrawerTitle> <DrawerDescription>Make changes to your stack configuration.</DrawerDescription> </DrawerHeader> <DrawerFooter> <Button>Save</Button> </DrawerFooter> </DrawerContent> </Drawer>