Popconfirm

A simple confirmation dialog of an element click action.

Basic usage

Popconfirm is similar to Popover. So for some duplicated attributes, please refer to the documentation of Popover.

Customize

You can customize Popconfirm like:

Trigger event

Click the button to trigger the event

Attributes

AttributeDescriptionTypeAccepted ValuesDefault
titleTitleString
confirmButtonTextConfirm button textString
cancelButtonTextCancel button textString
confirmButtonTypeConfirm button typeStringPrimary
cancelButtonTypeCancel button typeStringText
iconIcon ComponentString / ComponentQuestionFilled
iconColorIcon colorString#f90
hideIconis hide IconBooleanfalse
teleportedwhether popconfirm is teleported to the bodybooleantrue / falsetrue
persistentwhen popconfirm inactive and persistent is false , popconfirm will be destroyedbooleanfalse

Slots

NameDescription
referenceHTML element that triggers Popconfirm

Events

Event NameDescriptionParameters
confirmtriggers when click confirm button
canceltriggers when click cancel button