ReferenceComponentsDialogs, toasts, and overlays
DialogProps
DialogProps component contract.
Type
export interface DialogProps {
readonly id?: string;
readonly open?: boolean;
readonly defaultOpen?: boolean;
readonly onOpenChange?: (open: boolean) => void | Promise<void>;
readonly children?: ReactNode;
}Members
| Member | Type | Required | Description | Related types |
|---|---|---|---|---|
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. | — |
children | ReactNode | No | The children member uses the ReactNode contract. | — |