Components
Client Only
Installation
pnpm dlx @docyrus/cli add @docyrus/ui-delete-confirm-dialogUI Primitives(2 components)
npx shadcn@latest add alert-dialog buttonUsage
import {
DeleteConfirmDialog
} from "@docyrus/ui/components/delete-confirm-dialog";
<DeleteConfirmDialog
open
onOpenChange={() => {}}
objectName="..."
count={0}
onConfirm={() => {}}
isPending
/>API Reference
| Prop | Type | Default |
|---|---|---|
open | boolean | — |
onOpenChange | (open: boolean) => void | — |
objectName | string | — |
count | number | — |
onConfirm | () => void | Promise<void> | — |
isPending | boolean | — |
className | string | — |