Sidera/Components/Alert Dialog
Alert Dialog
An alert dialog interrupts to confirm a consequential or destructive action — one clear question, one clear way back out.
CategoryFeedback
StatusStable
01 —Overview
02 —Properties
PropTypeDefault
open / onOpenChangeboolean / (open) => voidrequired
tonedestructive | warning | branddestructive
titlestringrequired
descriptionstring—
confirmLabel / cancelLabelstringConfirm / Cancel
onConfirm / onCancel() => void—
03 —Usage
Reserve tone="destructive"for actions that lose data. Always state the consequence in the description, and make the confirm label a verb, not "OK".