Confirm Dialog
v0.2.0TODO: Add component description.
TODO: Add component description.
Usage
Compositions
Open all 1 →Properties
ConfirmDialog props
| Prop | Type | Default | Description |
|---|---|---|---|
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 |
cancelLabel | string | Cancel | Cancel button label; defaults to "Cancel" |
confirmLabel | string | Confirm | Confirm button label; defaults to "Confirm" |
variant | "default" | "danger" | default | Renders the confirm button as a destructive action; defaults to "default" |