Alert Dialog
A modal role="alertdialog" that interrupts to confirm a consequential action. It is described by its message, opens with focus on the safe (cancel) choice, traps focus and closes on Escape, and returns focus to the trigger — distinct from a generic Dialog by its role and initial focus.
Preview
Installation
npx shadcn@latest add https://ui.publictheta.com/r/alert-dialog.jsonConformance
This component conforms to the @publictheta/ui-spec alert-dialog specification. Run the suite against any implementation with pnpm conformance.