UNPKG

518 BTypeScriptView Raw
1import { Theme } from './createTheme';
2import { PropInjector } from '@material-ui/types';
3
4export interface WithTheme {
5 theme: Theme;
6}
7
8export interface ThemedComponentProps extends Partial<WithTheme> {
9 /**
10 * Deprecated. Will be removed in v5. Refs are now automatically forwarded to
11 * the inner component.
12 * @deprecated since version 4.0
13 */
14 innerRef?: React.Ref<any>;
15 ref?: React.Ref<unknown>;
16}
17
18declare const withTheme: PropInjector<WithTheme, ThemedComponentProps>;
19
20export default withTheme;