Behive Tech Registry

Confirm Dialog

v0.2.0

TODO: Add component description.

pnpm add @behivetech/molecules.confirm-dialog

TODO: Add component description.

Usage

Compositions

Open all 1 →

Properties

ConfirmDialog props

PropTypeDefaultDescription
message*ReactNode—Confirmation message/body content
onConfirm*() => void—Called when the confirm button is clicked, before the dialog closes
onOpenChange*(open: boolean) => void—Called when the dialog should close (cancel, confirm, backdrop click, Escape)
open*boolean—Whether the dialog is open
title*string—Dialog title
cancelLabelstringCancelCancel button label; defaults to "Cancel"
confirmLabelstringConfirmConfirm button label; defaults to "Confirm"
variant"default" | "danger"defaultRenders the confirm button as a destructive action; defaults to "default"