Alert Dialog
Understand the design system and contribute to it
Component preview
The live preview for UI components is handled by components/atoms/codedocs/ComponentPreview.tsx. Use it directly inside MDX whenever you want a playground-style embed. Provide componentProps to set default values and propOptions to surface toggle-able props next to the preview.
Prop reference
Auto-generated from the component source
AlertDialog
All props are forwarded to the underlying primitive.
React.ComponentProps<typeof AlertDialogPrimitive.Root>
AlertDialogAction
className
React.ComponentProps<typeof AlertDialogPrimitive.Action>
AlertDialogCancel
className
React.ComponentProps<typeof AlertDialogPrimitive.Cancel>
AlertDialogContent
className
React.ComponentProps<typeof AlertDialogPrimitive.Content>
AlertDialogDescription
className
React.ComponentProps<typeof AlertDialogPrimitive.Description>
AlertDialogFooter
className
React.ComponentProps<"div">
AlertDialogHeader
className
React.ComponentProps<"div">
AlertDialogOverlay
className
React.ComponentProps<typeof AlertDialogPrimitive.Overlay>
AlertDialogPortal
All props are forwarded to the underlying primitive.
React.ComponentProps<typeof AlertDialogPrimitive.Portal>
AlertDialogTitle
className
React.ComponentProps<typeof AlertDialogPrimitive.Title>
AlertDialogTrigger
All props are forwarded to the underlying primitive.
React.ComponentProps<typeof AlertDialogPrimitive.Trigger>