T

AlertDialogProps

What showDialog shows: a title, an optional body and custom content, and buttons.

type AlertDialogProps = { … }

Members

body?string

Text shown below the title.

The action buttons, in order, before the cancel button.

cancel?boolean | string

Adds 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?() => void

Runs when the cancel button closes the dialog.

onDismiss?() => void

Runs when the dialog closes without a button: the backdrop, the back gesture, or its handle's dismiss.

titlestring

The heading at the top of the dialog.