MiHCM
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.

Live preview

Adjust the controls on the right; the preview and code update in real time.

Are you sure?

This action cannot be undone.

example.tsxtsx
import { AlertDialog, AlertDialogContent, AlertDialogHeader, AlertDialogFooter, AlertDialogTitle, AlertDialogDescription, AlertDialogAction, AlertDialogCancel } from '@mihcm/ui/AlertDialog';

export function Example() {
  return (
    <AlertDialog
  size="md"
  title="Are you sure?"
  description="This action cannot be undone."
    ></AlertDialog>
  );
}

Install

Both paths are valid. CLI ships the source into your repo (you own it). Install pins via npm.

npx @mihcm/cli add AlertDialog
Copies the source into components/ds/AlertDialog.tsx. You own the file. Use --out to override the directory or --force to overwrite.