Skip to content

ConfirmDialogSlotProps

ConfirmDialogSlotProps = object

Defined in: packages/ui/src/types.ts:129

Props for the confirm dialog plugin slot.

Rendered by ActionButtonProps when confirmation is set, and available directly via the useConfirm() hook. Supports a “danger” variant for destructive actions.

optional cancelLabel: string

Defined in: packages/ui/src/types.ts:143

Label for the cancel button.


optional confirmLabel: string

Defined in: packages/ui/src/types.ts:141

Label for the confirm button.


optional description: string

Defined in: packages/ui/src/types.ts:139

Optional description body.


onClose: () => void

Defined in: packages/ui/src/types.ts:133

Called when the user cancels or closes the dialog.

void


onConfirm: () => void

Defined in: packages/ui/src/types.ts:135

Called when the user confirms the action.

void


open: boolean

Defined in: packages/ui/src/types.ts:131

Whether the dialog is currently visible.


title: string

Defined in: packages/ui/src/types.ts:137

Dialog title text.


optional variant: "default" | "danger"

Defined in: packages/ui/src/types.ts:145

Visual variant; “danger” uses warning colors.