UNPKG

mui-modal-provider

Version:

[![codecov](https://codecov.io/gh/Quernest/mui-modal-provider/branch/master/graph/badge.svg?token=AL2WK480NF)](https://codecov.io/gh/Quernest/mui-modal-provider) [![package version](https://img.shields.io/npm/v/mui-modal-provider.svg?style=flat-square)](h

20 lines (19 loc) 721 B
import React, { ReactNode } from 'react'; export interface ModalProviderProps { children: ReactNode; /** * Enable it if you want to use mui < 5 version */ legacy?: boolean; /** * Enable it if you want to wrap the modals with the Suspense feature. * @see https://beta.reactjs.org/reference/react/Suspense */ suspense?: boolean; /** * Custom fallback for the Suspense fallback * @see https://beta.reactjs.org/reference/react/Suspense#displaying-a-fallback-while-content-is-loading */ fallback?: ReactNode | null; } export default function ModalProvider({ children, legacy, suspense, fallback, }: ModalProviderProps): React.JSX.Element;