Jump to a page or a component.
Header / body / footer anatomy baked in, so every dialog matches.
No install — ask an AI agent to copy this component from registry.json.
import { Dialog, DialogBody, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger } from "@/components/ui/dialog";variant for role without restating size.showCloseButton for dialogs whose footer already carries an explicit Cancel and must not be dismissed casually.w-[min(…px,92vw)] in className for a wider one.The props worth knowing. Everything else passes straight through to the underlying element, including className, which is merged last so it always wins.
| Prop | Type | Default | Description |
|---|---|---|---|
| showCloseButton (Header) | boolean | true | Render the close X on the title row. |
| showCloseButton (Footer) | boolean | false | Append a plain Close button, for a dialog that only reports something. |
| closeLabel | string | "Close" | Copy and accessible name for either close control. |