Skip to content
Dumb UI

Search Dumb UI

Jump to a page or component, or switch the style

Search Dumb UI

Jump to a page or component, or switch the style

Drawer

A bottom sheet with drag-to-dismiss, built on Vaul. Best on touch screens.

OverlaysVaul
$ pnpm dlx shadcn@latest add @dumb/drawer

Needs the @dumb registry in components.json and the style tokens. See Installation.

import {
  Drawer,
  DrawerContent,
  DrawerHeader,
  DrawerTitle,
  DrawerTrigger,
} from "@/components/ui/drawer"
<Drawer>
  <DrawerTrigger asChild>
    <Button variant="outline">Open</Button>
  </DrawerTrigger>
  <DrawerContent>
    <DrawerHeader>
      <DrawerTitle>Move goal</DrawerTitle>
    </DrawerHeader>
  </DrawerContent>
</Drawer>
Esc
Closes the drawer.