# alert-dialog

- 分组：组合组件（Composite）
- 页面：/components/alert-dialog
- 源码：packages/react/src/components/alert-dialog.tsx

## 导出

```ts
import { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, ConfirmDialog, ConfirmDialogHost, confirm } from "@modra/react";
```

## Props（ConfirmDialogProps）

| 名称 | 必填 | 类型 | 说明 |
| --- | --- | --- | --- |
| `open` | 是 | `boolean` |  |
| `onOpenChange` | 是 | `(open: boolean) => void` |  |
| `onCancel` | 否 | `() => void` | Called when the user dismisses the dialog with the cancel action or Escape. |
