UxDangerDelete

components/ux/DangerDelete.vue

Destructive action button with optional two-step "type DELETE to confirm" verification.

deleting: false
States
Verify mode (type DELETE to confirm)
Deleting (loading)
components/ux/DangerDelete.vue

Usage

<UxDangerDelete action = "Delete" target = "—" :deleting = "false" :verify = "false" />

Props

PropTypeDefaultDescription
actionString'Delete'Action verb label
targetString''Name of the thing being deleted
deletingBooleanfalseShow loading state
verifyBooleanfalseRequire typing DELETE to confirm

Events

EventDescription
deleteWhen delete is confirmed

Related