Dialog
A window overlaid on either the primary window or another dialog window, rendering the content underneath inert.
Demo
Usage
Import the parts you need from the component's folder.
ts
import {
Dialog,
DialogTrigger,
DialogPortal,
DialogContent,
DialogClose,
DialogHeader,
DialogFooter,
DialogTitle,
DialogDescription,
DialogOverlay,
DialogScrollContent,
} from "@/components/ui/dialog";Scrollable Content
Constrain the body with max-height and overflow-y-auto for long content.
API Reference
Dialog
DialogContent
DialogFooter
DialogTrigger / DialogClose
Accessibility
Keyboard shortcuts and ARIA behavior.