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.
- ConfirmOptions for the imperative API options.
- UIPluginComponents for the slot registration point.
Properties
Section titled “Properties”cancelLabel?
Section titled “cancelLabel?”
optionalcancelLabel:string
Defined in: packages/ui/src/types.ts:143
Label for the cancel button.
confirmLabel?
Section titled “confirmLabel?”
optionalconfirmLabel:string
Defined in: packages/ui/src/types.ts:141
Label for the confirm button.
description?
Section titled “description?”
optionaldescription:string
Defined in: packages/ui/src/types.ts:139
Optional description body.
onClose()
Section titled “onClose()”onClose: () =>
void
Defined in: packages/ui/src/types.ts:133
Called when the user cancels or closes the dialog.
Returns
Section titled “Returns”void
onConfirm()
Section titled “onConfirm()”onConfirm: () =>
void
Defined in: packages/ui/src/types.ts:135
Called when the user confirms the action.
Returns
Section titled “Returns”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.
variant?
Section titled “variant?”
optionalvariant:"default"|"danger"
Defined in: packages/ui/src/types.ts:145
Visual variant; “danger” uses warning colors.