ohctechv3/.svn/pristine/dd/dd545b878ff3893d51db8f1119150385135d0a6b.svn-base

18 lines
592 B
Plaintext
Raw Permalink Normal View History

2024-10-28 15:03:36 +05:30
import { DefaultTheme } from '@mui/system';
export interface ThemeProviderProps<Theme = DefaultTheme> {
children?: React.ReactNode;
theme: Partial<Theme> | ((outerTheme: Theme) => Theme);
}
/**
* This component makes the `theme` available down the React tree.
* It should preferably be used at **the root of your component tree**.
* API:
*
* - [ThemeProvider API](https://mui.com/material-ui/customization/theming/#themeprovider)
*/
export default function ThemeProvider<Theme = DefaultTheme>(
props: ThemeProviderProps<Theme>,
): React.ReactElement<ThemeProviderProps<Theme>>;