Accessibility
AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogFooter, AlertDialogTrigger, AlertDialogSize from @prepared911/ui/alert-dialog.
AlertDialog follows the WAI-ARIA alert dialog pattern on Dialog's native dialog element opened with showModal(). The browser makes the rest of the document inert, keeps Tab and Shift+Tab inside the dialog, and hides the page from assistive technology while it is open.
role="alertdialog" and aria-modal="true", so assistive technology treats it as an interruption that needs a response.title renders an h2 referenced by aria-labelledby, and description is referenced by aria-describedby. Both are required, so the prompt is always announced with what it asks and what it costs.initialFocus for a confirmation that is not destructive. On close, focus returns to the trigger, or to finalFocus.onOpenChange cancels the request. Enter or Space on a focused Button activates it.prefers-reduced-motion: reduce the movement is removed and the fades remain (the close is instant). A press outside never closes it.CanvasText border.