materialuibasecomponent
Version:
Typescript Base Class for Material-UI Styled/Themed React Components
15 lines (14 loc) • 609 B
TypeScript
/// <reference types="react" />
import { StyledComponentProps, Theme, WithStyles, WithTheme } from '@material-ui/core';
import { ClassNameMap } from '@material-ui/core/styles/withStyles';
export interface IStyledComponentBasePropBase<T> {
classes?: ClassNameMap<any>;
theme?: Theme;
}
export interface IStyledComponentBaseStateBase<S> {
value: S;
Context: React.Context<S>;
WrappedClassType: React.ComponentClass<StyledComponentProps<never>>;
setContext: (state: S) => void;
}
export declare type StyledComponentBaseMixin = StyledComponentProps & WithStyles & WithTheme;