DeleteModal
A confirmation modal that DELETEs a record via API and shows toast feedback on success or failure.
Install: pnpm add-component DeleteModal
Delete confirmation
Wraps ConfirmDangerModal and handles the API call automatically.
API
isOpen(boolean): Whether the modal is visible.apiPath(string): API endpoint to DELETE.title(string): Modal header title.message(string): Confirmation message body.hold(boolean | number): Hold to confirm: the delete button fires only after a held press (ms; true is 1500). Off by default.successMessage(string): Toast message on successful deletion.