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.

Only title attribute is avaliable in Popconfirm, content will be ignored.

Customize

You can customize Popconfirm like:

Trigger event

Click the button to trigger the event

Attributes

AttributeDescriptionTypeAccepted ValuesDefault
titleTitleString
confirm-button-textConfirm button textString
cancel-button-textCancel button textString
cancel-button-typeCancel button typeStringghost / defaultdefault
iconIcon Componentstring | ComponentQuestion
icon-colorIcon colorString#646464
hide-iconis hide IconBooleanfalse
teleportedwhether popconfirm is teleported to the bodybooleantrue / falsetrue
persistentwhen popconfirm inactive and persistent is false , popconfirm will be destroyedbooleanfalse
widthpopconfirm widthstring/number-Min width 160px

Slots

NameDescription
custom content of popconfirm, show title by default
referenceHTML element that triggers Popconfirm

Events

Event NameDescriptionParameters
confirmtriggers when click confirm button
canceltriggers when click cancel button
Last Updated:
Contributors: Tam Mai