Genesis
@beta

ConfirmDeleteDialog

The confirm step in front of a destructive delete: an `AlertDialog` (Radix owns focus trap, Escape and focus return), a pending state, and the failure shown in place rather than swallowed. `ResourcePage` renders it for `allowDelete` / `confirmDelete`, as its `deleteDialog` slot.

packages/ui/src/components/data/ConfirmDeleteDialog.tsx

Import
Subpath export: @marktiderman/genesis-ui/data
import { ConfirmDeleteDialog } from "@marktiderman/genesis-ui/data";
Components
Auto-generated from TypeScript source via react-docgen-typescript.

ConfirmDeleteDialog

The confirm step in front of a destructive delete: an `AlertDialog` (Radix owns focus trap, Escape and focus return), a pending state, and the failure shown in place rather than swallowed. `ResourcePage` renders it for `allowDelete` / `confirmDelete`, as its `deleteDialog` slot.

PropTypeDefaultDescription
onConfirm*() => void | Promise<void>—Runs the delete. The dialog stays open while it is pending, closes when it resolves, and shows the error's message (staying open, so the user can retry or cancel) when it rejects.
onOpenChange*(open: boolean) => void—
open*boolean—
cancelLabelstring—Default "Cancel".
confirmLabelstring—Default "Delete".
descriptionReactNode—Default by `kind`: "This can't be undone.", or "It moves to the recycle bin, where it can be restored."
kindenumpermanentWhat happens to the record: `"permanent"` (default) or `"recycle"` when a delete moves it to a recycle bin. Sets the default description.
titlestring—Default "Delete this record?".