overlay/@mihcm/ui·v0.21.0·stable
AlertDialog
Non-dismissable modal requiring a user response. No backdrop dismiss, no Escape close. Composable sub-components mirror Dialog.
Props
The full prop API for AlertDialog. Same surface in web and React Native — bundlers pick the right variant via the react-native export condition.
| Prop | Type | Default | Description | Since |
|---|---|---|---|---|
open | boolean | — | Controlled open state. Required. | 0.5.0 |
onOpenChange | (open: boolean) => void | — | Called when the dialog should close (via action/cancel buttons only). Required. | 0.5.0 |
size | 'sm' | 'md' | 'lg' | 'xl' | 'md' | Content panel width. On AlertDialogContent. | 0.5.0 |
Import
import { AlertDialog, AlertDialogContent, AlertDialogHeader, AlertDialogTitle, AlertDialogDescription, AlertDialogFooter, AlertDialogAction, AlertDialogCancel } from '@mihcm/ui/AlertDialog';