DrawerDialog

a responsive dialog that renders a drawer (max-width: 640px) and a dialog on larger screens.

Open in

Installation

pnpm dlx shadcn@latest add https://mhl5.vercel.app/r/DrawerDialog.json

Usage

import {
  DrawerDialog,
  DrawerDialogContent,
  DrawerDialogTrigger,
} from "@/registry/new-york/DrawerDialog/DrawerDialog";

<DrawerDialog>
  <DrawerDialogTrigger>trigger</DrawerDialogTrigger>
  <DrawerDialogContent>Content</DrawerDialogContent>
</DrawerDialog>