Installation
npx shadcn@latest add @iconiq/r-alert-dialogReducedMotion
Pass reducedMotionwhen you want the installed component to settle into its quieter motion path immediately. Leaving the prop unset still respects the user's system-level reduced motion preference.
Props
AlertDialog
4 props
Provider-switchable destructive-confirmation surface with the same product-facing API on both Base UI and Radix UI.
open
booleanOptional controlled open state for the dialog root.
defaultOpen
booleanDefault
falseUncontrolled initial state for the dialog root when you want the component to manage its own visibility.
onOpenChange
(open: boolean) => voidCalled whenever the open state changes, regardless of which provider is installed underneath.
reducedMotion
booleanTurns the dialog root onto its quieter motion path immediately while still respecting system-level reduced motion preferences.
Notes
Current install target: Radix UI.
Dependencies declared by this registry entry: @radix-ui/react-alert-dialog, motion.
Installs a Radix alert dialog with the same higher-level trigger, content, action, and cancel API as the Base UI version.
Uses Motion-driven overlay fade, spring card entry, and staggered inner sections for the confirm flow.
The generated registry file is /r/r-alert-dialog.json.
Exports
5 props
Both registry entries ship the same higher-level parts so you can keep one alert-dialog composition style while swapping the headless library below it.
AlertDialogTrigger
ButtonHTMLAttributes<HTMLButtonElement>Default trigger button with the section’s rounded, motion-aware action styling baked in.
AlertDialogContent
HTMLAttributes<HTMLDivElement>Visible dialog card wrapper. className is merged onto the animated surface rather than the outer viewport container.
AlertDialogTitle
HTMLAttributes<HTMLHeadingElement>Heading slot linked to the dialog semantics on both providers.
AlertDialogDescription
HTMLAttributes<HTMLParagraphElement>Body copy slot for irreversible-action context and consequences.
AlertDialogCancel / AlertDialogAction
ButtonHTMLAttributes<HTMLButtonElement>Pre-styled action row buttons for the safe path and the destructive confirm path.