DialogProvider
import { DialogProvider } from 'react-dialog-async';
Wraps your application to provide dialog context. The provider manages dialog state.
<DialogProvider> <App /></DialogProvider>
Signature
Section titled “Signature”function DialogProvider(props: DialogProviderProps): JSX.Element
Prop | Type | Default | Description |
---|---|---|---|
children | React.ReactNode | - | Children |
defaultUnmountDelayInMs | number | 300 | Default delay in milliseconds to wait before unmounting a dialog after it is closed |