Studiov0.6.0

AlertDialog

Tier 1shadcn
Overlays

A blocking modal requiring explicit confirmation before a destructive or irreversible action.

Live Preview

Code

import { AlertDialog } from "@regen/ui";

<AlertDialog />

Props Inspector

No configurable props for this component.

Documentation

Use Cases

  • Delete confirmation
  • Irreversible publish/deploy
  • Logout confirmation

Do

  • Make the destructive action the primary button
  • Clearly describe what will be deleted/lost

Don't

  • Don't use for non-destructive confirmations — use Dialog
  • Don't allow dismissal via overlay click for destructive actions