UI kit

Style
Mode
Accent
Second

Dialog

An opaque sheet over the page. Mono and Print shop print the second fill off its outline and Desk lifts it with a soft shadow. The page behind is dimmed in each style's own way.

Use it

npx shadcn@latest add https://ui.devmtkl.com/r/dialog.json
import { Button } from "@/components/ui/button"
import {
  Dialog, DialogClose, DialogContent, DialogDescription,
  DialogFooter, DialogHeader, DialogTitle, DialogTrigger,
} from "@/components/ui/dialog"

<Dialog>
  <DialogTrigger asChild><Button>Lend the drill</Button></DialogTrigger>
  <DialogContent>
    <DialogHeader>
      <DialogTitle>Lend the hammer drill?</DialogTitle>
      <DialogDescription>Ines asked for it until Friday.</DialogDescription>
    </DialogHeader>
    <DialogFooter>
      <DialogClose asChild><Button variant="outline">Not now</Button></DialogClose>
      <DialogClose asChild><Button>Lend it</Button></DialogClose>
    </DialogFooter>
  </DialogContent>
</Dialog>

A dialog

In colour

A long dialog

Footer close