Dialog
Modal window for confirmations and focused tasks.
shadcn/ui · new-york-v4 · synced Aug 29, 2026shadcn/uinew-york-v4 · synced Aug 29, 2026
Installation
import {
Dialog,
DialogTrigger,
DialogContent,
DialogHeader,
DialogTitle,
DialogDescription,
DialogFooter,
DialogClose,
} from "@aspyn-io/kit";Destructive confirmation
The standard confirm pattern for irreversible actions.
Scrollable body
Long content? Wrap the middle in an overflow container so the header and footer stay pinned while it scrolls.
Form in a dialog
Notes
- Focus is trapped inside the dialog and returned to the trigger on close (Radix).
- Escape and clicking the overlay close it; DialogTitle is required for accessible naming.
- For controlled dialogs (e.g. close after async save), use open + onOpenChange.