v0.5.1

Confirm Dialog

Confirm or destructive prompt composed from Dialog.

Installation

npx paubha@latest add confirm-dialog

Usage

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"
/>

On this page