Velocity X Components

Standard Overlays & Menus

Destructive Confirm Dialog

Stops an accidental delete click by keeping the destructive action disabled until the person types the exact resource name back, with full keyboard and screen-reader support.

Subscription Included with the Velocity Components subscription.
bash
$ velocityx add standard-destructive-confirm-dialog

Built for react. Needs react already installed as a peer dependency. An Astro-only project needs @astrojs/react wired up first — this won't run on its own in plain Astro.

Full docs for Destructive Confirm Dialog →

Needs a licence key — subscribe here, then velocityx loginonce.

react v1.0.2 react
Destructive Confirm Dialog

Delete "Meridian Health — Production"?

This permanently removes the project, its data and every connected integration. This cannot be undone.

Props

NameTypeRequiredDefaultDescription
triggerLabelstringNo'Delete project'
titlestringNo'Delete this project?'
descriptionstringNo'This permanently removes the project and everything inside it. This cannot be undone.'
resourceNamestringNo'untitled-project'
resourceLabelstringNo'project name'
confirmLabelstringNo'Delete permanently'
cancelLabelstringNo'Cancel'
onConfirmundocumentedYes
openundocumentedYes
defaultOpenbooleanNofalse
onOpenChangeundocumentedYes

4 fields in this table have an undocumented type — see source for the exact shape.

File this creates

The CLI writes this path into your project, relative to its root — nothing else moves.

text
components/velocity/standard-destructive-confirm-dialog/DestructiveConfirmDialog.jsx

Using the Destructive Confirm Dialog component

Install it with velocityx add standard-destructive-confirm-dialog. The CLI writes the source straight into your project — no runtime dependency, no registry lock-in, and it themes itself from the same primary-*/accent-* scale as the rest of the library.

More from Standard Overlays & Menus.