T
AlertDialogProps
What showDialog shows: a title, an optional body and custom content, and buttons.
type AlertDialogProps = { … }Members
body?
stringText shown below the title.
cancel?
boolean | stringAdds a cancel button last; a string sets its label.
content?
React.ComponentType<DialogContentProps>A component rendered below the body, given a way to close the dialog.
onCancel?
() => voidRuns when the cancel button closes the dialog.
onDismiss?
() => voidRuns when the dialog closes without a button: the backdrop, the back gesture, or its handle's dismiss.
title
stringThe heading at the top of the dialog.