Skip to content

Confirm

Confirm

PConfirm asks the user to confirm or cancel a destructive action.

Demo

Usage

<PConfirm
title="Delete record?"
message="This cannot be undone."
:can-cancel="true"
@result="handleResult"
@close="showConfirm = false"
/>

Props

PropTypeDefaultNotes
titleStringRequired.
messageString''Body text.
canCancelBooleanfalseShows a separate cancel button.

Events

EventPayloadDescription
resultBooleantrue or false based on the user action.
closeEmitted when the cancel action is chosen.