Alert Dialog
A modal dialog that interrupts the user with important content and expects a response.
Made by imskyleenInstallation
Usage
API Reference
AlertDialog
AlertDialogTrigger
AlertDialogContent
Animate UI API Reference - Alert Dialog Content PrimitiveRadix UI API Reference - AlertDialog.Content
Prop | Type | Default |
---|---|---|
from? | 'top' | 'bottom' | 'left' | 'right' | top |
transition? | Transition | { type: 'spring', stiffness: 150, damping: 25 } |
...props? | HTMLMotionProps<"div"> | - |
The asChild
and forceMount
properties are not supported in the
AlertDialogContent
component, as it is used for animation.
AlertDialogCancel
AlertDialogHeader
Animate UI API Reference - Alert Dialog Header PrimitiveProp | Type | Default |
---|---|---|
...props? | React.ComponentProps<'div'> | - |
AlertDialogTitle
AlertDialogDescription
Animate UI API Reference - Alert Dialog Description PrimitiveRadix UI API Reference - AlertDialog.Description
AlertDialogFooter
Animate UI API Reference - Alert Dialog Footer PrimitiveProp | Type | Default |
---|---|---|
...props? | React.ComponentProps<'div'> | - |
Credits
- Radix UI Alert Dialog
- Credit to shadcn/ui for style inspiration.