AlertDialog
A composable component for important confirmations and alerts with customizable actions.
Anchor to propsProps
- Anchor to childrenchildrenchildrenReact.ReactNodeReact.ReactNoderequiredrequired
The trigger element that opens the alert dialog
- Anchor to descriptiondescriptiondescriptionstringstringrequiredrequired
The description text shown in the alert dialog body
- Anchor to onConfirmationActiononConfirmationActiononConfirmationAction() => void() => voidrequiredrequired
Callback fired when the confirmation button is clicked
- Anchor to onOpenChangeonOpenChangeonOpenChange(open: boolean) => void(open: boolean) => voidrequiredrequired
Callback fired when the alert dialog open state changes
- Anchor to titletitletitlestringstringrequiredrequired
The title text shown in the alert dialog header
- stringstring
The text shown in the cancel button
- stringstring
The text shown in the confirmation button
- Anchor to openopenopenbooleanboolean
Whether the alert dialog is open
Was this page helpful?