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

Dialog

A modal window for focused tasks. Raw drops in, Silk pops softly, Volume tilts up in perspective, Vector draws open from a center line.

OverlaysRadix DialogDumb extras
$ pnpm dlx shadcn@latest add @dumb/dialog

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

import {
  Dialog,
  DialogContent,
  DialogDescription,
  DialogHeader,
  DialogTitle,
  DialogTrigger,
} from "@/components/ui/dialog"
<Dialog>
  <DialogTrigger asChild>
    <Button variant="outline">Rename</Button>
  </DialogTrigger>
  <DialogContent>
    <DialogHeader>
      <DialogTitle>Rename project</DialogTitle>
      <DialogDescription>Shown in URLs and invites.</DialogDescription>
    </DialogHeader>
  </DialogContent>
</Dialog>

Sizes

size presets from sm to full.

API reference

Props marked “extra” are Dumb UI additions. Everything else matches shadcn/ui.

DialogContent

PropTypeDefault
sizeextra"sm" | "default" | "lg" | "xl" | "full"

Max-width preset.

"default"
showCloseButtonboolean

Renders the corner close button.

true
Esc
Closes the dialog and returns focus to the trigger.
TabShift+Tab
Cycles focus inside the dialog.