# ConfirmDialogProps

Source: /tuil/docs/reference/components/overlays/confirm-dialog-props
Locale: en

ConfirmDialogProps component contract.



{/* Generated by tooling/docs/generate-reference.ts. */}

## Type [#type]

```ts
export interface ConfirmDialogProps extends Omit<DialogProps, "children"> {
  readonly title: string;
  readonly description?: string;
  readonly confirmLabel?: string;
  readonly cancelLabel?: string;
  readonly danger?: boolean;
  readonly onConfirm: () => void | Promise<void>;
  readonly onCancel?: () => void | Promise<void>;
  readonly trigger?: ReactNode;
}
```

## Members [#members]

| Member         | Type                                                      | Required | Description                                                                                            | Related types |
| -------------- | --------------------------------------------------------- | -------- | ------------------------------------------------------------------------------------------------------ | ------------- |
| `title`        | `string`                                                  | Yes      | The `title` member uses the `string` contract.                                                         | —             |
| `description`  | `string \| undefined`                                     | No       | The `description` member uses the `string \| undefined` contract.                                      | —             |
| `confirmLabel` | `string \| undefined`                                     | No       | The `confirmLabel` member uses the `string \| undefined` contract.                                     | —             |
| `cancelLabel`  | `string \| undefined`                                     | No       | The `cancelLabel` member uses the `string \| undefined` contract.                                      | —             |
| `danger`       | `boolean \| undefined`                                    | No       | The `danger` member uses the `boolean \| undefined` contract.                                          | —             |
| `onConfirm`    | `() => void \| Promise<void>`                             | Yes      | The `onConfirm` member uses the `() => void \| Promise<void>` contract.                                | —             |
| `onCancel`     | `(() => void \| Promise<void>) \| undefined`              | No       | The `onCancel` member uses the `(() => void \| Promise<void>) \| undefined` contract.                  | —             |
| `trigger`      | `ReactNode`                                               | No       | The `trigger` member uses the `ReactNode` contract.                                                    | —             |
| `id`           | `string \| undefined`                                     | No       | The `id` member uses the `string \| undefined` contract.                                               | —             |
| `open`         | `boolean \| undefined`                                    | No       | The `open` member uses the `boolean \| undefined` contract.                                            | —             |
| `defaultOpen`  | `boolean \| undefined`                                    | No       | The `defaultOpen` member uses the `boolean \| undefined` contract.                                     | —             |
| `onOpenChange` | `((open: boolean) => void \| Promise<void>) \| undefined` | No       | The `onOpenChange` member uses the `((open: boolean) => void \| Promise<void>) \| undefined` contract. | —             |

## Source [#source]

[View the secondary source reference](https://github.com/mwillbanks/tuil/blob/main/registry/feedback/overlays.tsx)
