Skip to content

AsyncDialogProps

import { AsyncDialogProps } from 'react-dialog-async';

Prop types for dialog components used with React Dialog Async.

interface AsyncDialogProps<Request = void, Response = undefined> {
isOpen: boolean;
isFocused: boolean;
handleClose: (data?: Response) => void;
data: Request;
}
PropertyTypeDescription
isOpenbooleanIndicates whether the dialog is currently open
isFocusedbooleanIndicates whether the dialog is the top-most dialog
handleClose(data?: Response) => voidFunction to close the dialog. Optionally accepts data of type Response to be passed back to the caller

View on GitHub