Variables
ThemeProvider
Theme
Provider: ComponentType<{ theme?: Theme }>
Functions
useTheme
-
Parameters
-
Optional overrides: $DeepPartial<Theme>
withTheme
- withTheme<Props, C>(WrappedComponent: ComponentClass<Props, any> & C & FunctionComponent<Props> & C): ComponentClass<$Without<Props, "theme"> & { theme?: $DeepPartial<Theme> }, any> & NonReactStatics<ComponentClass<Props, any> & C & FunctionComponent<Props> & C, {}> & FunctionComponent<$Without<Props, "theme"> & { theme?: $DeepPartial<Theme> }> & NonReactStatics<ComponentClass<Props, any> & C & FunctionComponent<Props> & C, {}>
-
Type parameters
-
Props: { theme: Theme }
-
C
Parameters
-
WrappedComponent: ComponentClass<Props, any> & C & FunctionComponent<Props> & C
Returns ComponentClass<$Without<Props, "theme"> & { theme?: $DeepPartial<Theme> }, any> & NonReactStatics<ComponentClass<Props, any> & C & FunctionComponent<Props> & C, {}> & FunctionComponent<$Without<Props, "theme"> & { theme?: $DeepPartial<Theme> }> & NonReactStatics<ComponentClass<Props, any> & C & FunctionComponent<Props> & C, {}>