ConfirmOptions
ConfirmOptions =
object
Defined in: packages/ui/src/types.ts:925
Options for the imperative confirmation dialog.
Passed to the function returned by useConfirm(), which resolves to true
(confirmed) or false (cancelled). Also accepted by ActionButtonProps
via the confirmation prop.
ConfirmDialogSlotProps for the underlying dialog slot.
Properties
Section titled “Properties”cancelLabel?
Section titled “cancelLabel?”
optionalcancelLabel:string
Defined in: packages/ui/src/types.ts:933
Label for the cancel button. Defaults to “Cancel”.
confirmLabel?
Section titled “confirmLabel?”
optionalconfirmLabel:string
Defined in: packages/ui/src/types.ts:931
Label for the confirm button. Defaults to “Confirm”.
description?
Section titled “description?”
optionaldescription:string
Defined in: packages/ui/src/types.ts:929
Optional description body.
title:
string
Defined in: packages/ui/src/types.ts:927
Dialog title text.
variant?
Section titled “variant?”
optionalvariant:"default"|"danger"
Defined in: packages/ui/src/types.ts:935
Visual variant; “danger” uses warning colors for destructive actions.