@mui/private-theming
Version:
Private - The React theme context to be shared between `@mui/styles` and `@mui/material`.
6 lines • 336 B
TypeScript
import { DefaultTheme } from "../defaultTheme/index.js";
export interface ThemeProviderProps<Theme = DefaultTheme> {
children?: React.ReactNode;
theme: Partial<Theme> | ((outerTheme: Theme) => Theme);
}
export default function ThemeProvider<T = DefaultTheme>(props: ThemeProviderProps<T>): React.ReactElement<ThemeProviderProps<T>>;