Alert Dialog Component

Modal dialogs for confirmations and important actions with orbit-styled containers.

Basic Alert Dialog

Click Outside to Close

Use the standard Dialog component when you want users to be able to dismiss by clicking outside.

Delete Confirmation

Logout Confirmation

Warning Dialog

Download Confirmation

Inline Confirmation Pattern

For simpler confirmations, consider an inline card pattern that matches the Orbit Capsule style.

Remove item?

Are you sure you want to remove this item from your cart?

API Reference

AlertDialog

PropTypeDescription
openbooleanControlled open state
defaultOpenbooleanDefault open state
onOpenChange(open: boolean) => voidCallback when open state changes

Subcomponents

  • AlertDialogTrigger — Button that opens the dialog
  • AlertDialogContent — The modal content container
  • AlertDialogHeader — Header section wrapper
  • AlertDialogTitle — Title text
  • AlertDialogDescription — Description text
  • AlertDialogFooter — Footer section for actions
  • AlertDialogAction — Primary action button
  • AlertDialogCancel — Cancel/secondary button