Menu
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
01Overview
02Properties
PropTypeDefault
open / onOpenChangeboolean / (open) => voidrequired
tonedestructive | warning | branddestructive
titlestringrequired
descriptionstring
confirmLabel / cancelLabelstringConfirm / Cancel
onConfirm / onCancel() => void
03Usage

Reserve tone="destructive"for actions that lose data. Always state the consequence in the description, and make the confirm label a verb, not "OK".