Installation
npx shadcn@latest add @iconiq/r-dialogProps
Dialog
Provider-switchable modal surface with the same exported Dialog parts on both Base UI and Radix UI.
openbooleandefaultOpenbooleanDefault false
onOpenChange(open: boolean) => voidCurrent install target: Radix UI.
Dependencies declared by this registry entry: @radix-ui/react-dialog, motion, lucide-react.
Installs a Radix dialog with the same exported Dialog parts as the Base UI version.
Uses the original dialog spring timing with the softer alert-dialog card styling, overlay blur, and updated surface treatment.
The generated registry file is /r/r-dialog.json.
Exports
Both registry entries ship the same higher-level parts so you can keep one dialog composition style while swapping the headless library below it.
DialogTrigger / DialogCloseButtonHTMLAttributes<HTMLButtonElement> & { asChild?: boolean }DialogContentDialog popup props + { open?: boolean }DialogHeader / DialogFooterHTMLAttributes<HTMLDivElement>DialogTitle / DialogDescriptionPrimitive text propsDialogPortalPortal primitiveBoth installs render a built-in top-right close button inside DialogContent.
The motion timing follows the original dialog component, while the card styling and overlay treatment follow the alert-dialog surface direction.