Alert Dialog

A modal dialog that requires user confirmation before proceeding with an action.

Basic Usage

A simple confirmation dialog with cancel and confirm actions.

Delete Confirmation

A destructive action confirmation with appropriate styling.

Logout Confirmation

Confirm before signing out of the application.

Reset Data

Warning dialog for irreversible data operations.

Unsaved Changes

Warn users before leaving a page with unsaved changes.

Delete Item

Confirm deletion of a specific item with context.

Click Outside to Close

For non-critical confirmations, use Dialog instead of AlertDialog to allow closing by clicking outside. AlertDialog intentionally blocks outside clicks for destructive actions.

When to use which:

  • AlertDialog: Destructive actions (delete, reset)
  • Dialog: Non-critical confirmations, form submissions