Alert Dialog
A modal dialog that interrupts to confirm an action. Use it for destructive or irreversible choices.
Installation
Copy the command below and run it in your terminal.
Usage
Import the AlertDialog components and use them:
Examples
Common patterns for destructive actions and sign-out flows.
Destructive confirmation
Sign out confirmation
Anatomy
AlertDialog.Root - Controls alert dialog state.
AlertDialog.Trigger - Opens the alert dialog.
AlertDialog.Content - Renders the dialog surface.
AlertDialog.Header - Groups dialog heading content.
AlertDialog.Title - Renders the dialog title.
AlertDialog.Description - Renders the dialog description.
AlertDialog.Exit - Closes the dialog without confirming.
AlertDialog.Footer - Groups dialog actions.
AlertDialog.Confirm - Confirms and closes the dialog.
bunx @sivir-ui/svelte add alert-dialog