Confirm Dialog
Confirm or destructive prompt composed from Dialog.
Installation
npx paubha@latest add confirm-dialogUsage
import { ConfirmDialog } from "@/components/ui/confirm-dialog";
import { Button } from "@/components/ui/button";
<ConfirmDialog
trigger={<Button destructive>Delete</Button>}
title="Delete project?"
description="This cannot be undone."
intent="error"
confirmLabel="Delete"
/>