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/dataimport { 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.
| Prop | Type | Default | Description |
|---|---|---|---|
| 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 | — | |
| cancelLabel | string | — | Default "Cancel". |
| confirmLabel | string | — | Default "Delete". |
| description | ReactNode | — | Default by `kind`: "This can't be undone.", or "It moves to the recycle bin, where it can be restored." |
| kind | enum | permanent | What happens to the record: `"permanent"` (default) or `"recycle"` when a delete moves it to a recycle bin. Sets the default description. |
| title | string | — | Default "Delete this record?". |