UNPKG

@mui/material

Version:

Material UI is an open-source React component library that implements Google's Material Design. It's comprehensive and can be used in production out of the box.

18 lines (15 loc) 592 B
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>>;