X Enterprises
Buttons

BtnConfirmDelete

Delete button that shows a confirmation dialog before calling the confirm handler.

Buttons

Pre-built action buttons for common admin dashboard operations. All extend Nuxt UI's UButton.

Components

<XABtnConfirmDelete />

Shows a confirmation modal before calling the confirm handler.

<XABtnConfirmDelete
  :label="item.name"
  confirm-text="Delete forever"
  @confirm="handleDelete"
/>

Props

PropTypeDefaultDescription
labelstringrequiredItem name shown in confirmation
confirmTextstring'Delete'Confirmation button text
loadingbooleanfalseLoading state

Emits

EventDescription
confirmFires when user confirms deletion
cancelFires when user cancels

AI Context

component: XABtnConfirmDelete
package: "@xenterprises/nuxt-x-app"
category: Btn
use-when: CRUD table rows — delete action with confirmation modal
pattern: requires @confirm event handler, shows modal before deleting
Copyright © 2026