DialogPropsinterface

{
	onClose?: Callback;
}
PropertyType
.onCloseCallback
Called when the user closes the dialog. It must unmount the <Dialog>, and it runs inside startTransition() so the dialog animates out.

Props for <Dialog> — optional children content and an onClose callback.