Blame view

天文台pc/tianwentai-ui/node_modules/@mui/system/ThemeProvider/ThemeProvider.d.ts 861 Bytes
bc518174   王天杨   提交两个项目文件
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
  import { DefaultTheme } from '@mui/private-theming';
  export interface ThemeProviderProps<Theme = DefaultTheme> {
    /**
     * Your component tree.
     */
    children?: React.ReactNode;
    /**
     * The design system's unique id for getting the corresponded theme when there are multiple design systems.
     */
    themeId?: string | undefined;
    /**
     * A theme object. You can provide a function to extend the outer theme.
     */
    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<T = DefaultTheme>(props: ThemeProviderProps<T>): React.ReactElement<ThemeProviderProps<T>>;