React
Portal, aria modal semantics, focus trap, escape, outside interaction, mount controls.

Component
Compound dialog for destructive or interruptive confirmation.
import { AlertDialogRoot, AlertDialogTrigger, AlertDialogContent, AlertDialogHeader, AlertDialogTitle, AlertDialogDescription, AlertDialogFooter, AlertDialogAction } from "@hozorica/hods-react/alert-dialog";import { AlertDialogRoot, AlertDialogTrigger, AlertDialogContent, AlertDialogHeader, AlertDialogTitle, AlertDialogDescription, AlertDialogFooter, AlertDialogAction } from "@hozorica/hods-react-native/alert-dialog";booleanControlled and uncontrolled state.(open, details) => voidReceives open state and reason.booleanEscape key on web; Android back on RN.booleanControls outside click/press close.booleanWeb mount and animation controls.Portal, aria modal semantics, focus trap, escape, outside interaction, mount controls.
Modal, Android back handling, outside press policy, modal accessibility.
<AlertDialogRoot><AlertDialogTrigger>Open</AlertDialogTrigger><AlertDialogContent><AlertDialogHeader><AlertDialogTitle>Delete item?</AlertDialogTitle><AlertDialogDescription>This cannot be undone.</AlertDialogDescription></AlertDialogHeader><AlertDialogFooter><AlertDialogAction>Delete</AlertDialogAction></AlertDialogFooter></AlertDialogContent></AlertDialogRoot>