Alert Dialog
A modal dialog that interrupts the user with important content and expects a response.
Made by imskyleenInstallation
Usage
API Reference
AlertDialog
Radix UI API Reference - AlertDialog.RootAlertDialogTrigger
Radix UI API Reference - AlertDialog.TriggerAlertDialogPortal
Radix UI API Reference - AlertDialog.PortalThe forceMount
property is not supported in the AlertDialogPortal
component, as it is used for animation.
AlertDialogOverlay
Radix UI API Reference - AlertDialog.OverlayProp | Type | Default |
---|---|---|
transition? | Transition | { duration: 0.2, ease: 'easeInOut' } |
...props? | HTMLMotionProps<"div"> | - |
The asChild
and forceMount
properties are not supported in the
AlertDialogOverlay
component, as it is used for animation.
AlertDialogContent
Radix UI API Reference - AlertDialog.ContentProp | 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.
AlertDialogAction
Radix UI API Reference - AlertDialog.ActionAlertDialogCancel
Radix UI API Reference - AlertDialog.CancelAlertDialogHeader
Prop | Type | Default |
---|---|---|
...props? | React.ComponentProps<'div'> | - |
AlertDialogTitle
Radix UI API Reference - AlertDialog.TitleAlertDialogDescription
Radix UI API Reference - AlertDialog.DescriptionAlertDialogFooter
Prop | Type | Default |
---|---|---|
...props? | React.ComponentProps<'div'> | - |