Components
Preview
Sizes
Nested overlays
Installation
$ pnpm dlx shadcn@latest add https://ui.ketyap.me/r/dialog.jsonUsage
import { Button } from "@/components/ui/button";
import {
Dialog,
DialogTrigger,
DialogContent,
DialogTitle,
DialogDescription,
} from "@/components/ui/dialog";
<Dialog>
<DialogTrigger render={<Button />}>Open settings</DialogTrigger>
<DialogContent size="small">
<DialogTitle>Settings</DialogTitle>
<DialogDescription>Manage your preferences.</DialogDescription>
</DialogContent>
</Dialog>;API Reference
Root exposes Base UI Dialog state and dismissal props; existing sounds remains supported. Content size: small (400px), default (540px), large (880px), narrowed to 360/480/800px in compact density. Content is constrained to the viewport and scrolls when needed. showCloseButton defaults to true. Header, Footer, Title, Description, Close, Overlay and Portal are exported. Include a Title. The nested overlays example includes Select, DropdownMenu and Tooltip for nested surface and focus testing.