Skip to content

DialogProvider

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

Wraps your application to provide dialog context. The provider manages dialog state.

<DialogProvider>
<App />
</DialogProvider>
function DialogProvider(props: DialogProviderProps): JSX.Element
PropTypeDefaultDescription
childrenReact.ReactNode-Children
defaultUnmountDelayInMsnumber300Default delay in milliseconds to wait before unmounting a dialog after it is closed

View on GitHub