@material-ui/core
Version:
React components that implement Google's Material Design.
21 lines (16 loc) • 518 B
TypeScript
import { Theme } from './createTheme';
import { PropInjector } from '@material-ui/types';
export interface WithTheme {
theme: Theme;
}
export interface ThemedComponentProps extends Partial<WithTheme> {
/**
* Deprecated. Will be removed in v5. Refs are now automatically forwarded to
* the inner component.
* @deprecated since version 4.0
*/
innerRef?: React.Ref<any>;
ref?: React.Ref<unknown>;
}
declare const withTheme: PropInjector<WithTheme, ThemedComponentProps>;
export default withTheme;