DialogOptions: {
    closeOnBackdrop?: boolean;
    defaultOpen?: boolean;
    onOpenChange?: (open: boolean) => void;
}

Shared options for the modal and drawer dialog enhancers.

Type declaration

  • OptionalcloseOnBackdrop?: boolean

    Dismiss the dialog when its backdrop is clicked. Defaults to true.

  • OptionaldefaultOpen?: boolean

    Open the dialog immediately on enhance. Defaults to false.

  • OptionalonOpenChange?: (open: boolean) => void

    Called after the dialog opens or closes (including native Escape).