Components / Overlays
Modal
Controlled modal dialog with overlay and keyboard dismissal.
Preview
1import { Modal } from "@/components/ui/modal"2
3export function ModalDemo() {4 return <Modal open={open} onOpenChange={setOpen} title="Publish component">Review the component before publishing.</Modal>5}Installation
Add the source directly to your project with the shadcn CLI.
npx shadcn@latest add qentrah/DUI/modalUsage
Install the component, import it from your configured UI directory, and adapt the source to your product. Open the source panel under any example to copy that exact variant.