ConfirmDeleteDialog
Storybook
Go to StoryConfirmDeleteDialog()
function ConfirmDeleteDialog(__namedParameters): Element;
Defined in: src/molecules/ConfirmDeleteDialog/ConfirmDeleteDialog.tsx:55
A dialog component for confirming destructive actions like deletion. Built on top of the Dialog component, it provides a consistent interface for confirming irreversible actions.
Parameters
| Parameter | Type |
|---|---|
__namedParameters | ConfirmDeleteDialogProps |
Returns
Element
Example
<ConfirmDeleteDialog
entityName="user"
itemName="john@example.com"
onDelete={handleDelete}
open={isOpen}
onOpenChange={setIsOpen}
/>