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
Could not load examples for Primer component library: product
Customized dialog buttons
Confirm and cancel button labels can be customized, and the confirm button style variant can be customized.
Could not load examples for Primer component library: product
API
Loading data for useConfirm...