withTheme()
Home > @gooddata/sdk-ui-theme-provider > withTheme
withTheme() function
Injects both theme object and isThemeLoading flag into component as properties
Signature:
export declare function withTheme<T extends {
theme?: ITheme;
workspace?: string;
}>(Component: React.ComponentType<T>): React.ComponentType<Omit<T, "theme" | "themeIsLoading" | "themeStatus">>;
Parameters
Parameter | Type | Description |
---|---|---|
Component | React.ComponentType<T> |
Returns:
React.ComponentType<Omit<T, "theme" | "themeIsLoading" | "themeStatus">>