An accessible alert dialog component built on Base UI with smooth 3D perspective spring entrance and exit animations, customizable sizes, and media slots.
Made by AxylDefault animated alert dialog with 3D perspective transition, media icon header, and destructive action.
Installation
File Structure
Usage
Examples
Small Size
Compact alert dialog layout with 2-column action buttons.
Props
AlertDialog
| Prop | Type | Default |
|---|---|---|
open? | boolean | - |
defaultOpen? | boolean | false |
onOpenChange? | (open: boolean) => void | - |
AlertDialogContent
| Prop | Type | Default |
|---|---|---|
size? | "default" | "sm" | "default" |
showCloseButton? | boolean | false |
overlayClassName? | string | - |
containerClassName? | string | - |
className? | string | - |
AlertDialogAction
| Prop | Type | Default |
|---|---|---|
closeOnClick? | boolean | false |
Built by Axyl. A motion-first component registry for React.
Last updated: 9/11/2026