Click on the element to pop up a bubble-type confirmation box.
Examples
Basic
Basic
Asynchronous hide
Asynchronous hide
Properties
For more parameters, please refer to Popper properties.
| Property | Description | Type | Default | Require |
|---|---|---|---|---|
| title | Title | React.ReactNode | - | true |
| icon | Custom icon | React.ReactNode | - | false |
| onCancel | Click to cancel the event | () => void | Promise<void> | - | false |
| onConfirm | Click to confirm event | () => void | Promise<void> | - | false |
| cancelButtonProps | The props of the cancel button, refer to Button | object | - | false |
| confirmButtonProps | The props of the confirm button, refer to Button | object | - | false |
| cancelText | Cancel button text, support i18n | string | 取消 | false |
| confirmText | Confirm button text, support i18n | string | 确认 | false |
| hideArrow | Show arrow | boolean | - | false |