useConfirm

Shows a dialog for the users to confirm an action.

This hook may be used instead of manually rendering a confirmation dialog using the Dialog component.

The rendered dialog uses the ConfirmationDialog component.

Examples

Default

Customized dialog buttons

Confirm and cancel button labels can be customized, and the confirm button style variant can be customized.

API

Loading data for useConfirm...