ConfirmDangerModal
A specialized modal for confirming destructive or dangerous actions.
Install: pnpm add-component ConfirmDangerModal
Danger confirmation
Use this for actions like deleting a project or account.
Hold to confirm
For the actions that cannot be undone, the confirm button needs a held press instead of a click.
API
isOpen(boolean): Whether the modal is visible.title(string): Title shown in the modal.message(string): Detailed warning message.confirmLabel(string): Label for the danger button.hold(boolean | number): Hold to confirm (AppButton hold): the confirm button fires only after a held press (ms; true is 1500), Enter on the dialog no longer confirms, and a line under the message explains the hold.holdText(string): That line.