Popconfirm
A simple and compact confirmation dialog of an action.
#
When To UseA simple and compact dialog used for asking for user confirmation.
#
Examples#
Basic#
With customized text & type#
APIProperty | Description | Type | Default |
---|---|---|---|
content | content of the confirmation box | ReactNode | |
type | customize icon of confirmation | 'info' | 'success' | 'error' | 'warning' | 'warning' |
cancelText | text of the Cancel button | string | Cancel |
confirmText | text of the Confirm button | string | Confirm |
onCancel | callback of cancel | (event: MouseEvent) => void | |
onConfirm | callback of confirmation | (event: MouseEvent) => void |
Consult Popover's documentation to find more APIs.