IThemeContextProviderProps
export interface IThemeContextProviderProps
Properties
Property | Modifiers | Type | Description |
|---|---|---|---|
ReactNode | (Optional) React children | ||
boolean | (Optional) Whether the theme object comes from ScopedThemeProvider | ||
(Optional) Theme of record for computations that must not depend on application-specific presentation adjustments (e.g. a stripped complementary palette). | |||
ITheme | undefined | Theme object contains properties to be used instead of default ones. When undefined, no theme is applied and default styling is used. | ||
boolean | Flag telling whether the theme object is being loaded or not | ||
(Optional) Status telling whether the theme object is being loaded or not Started in pending state, then switches to loading and finally to success Can skip loading if theme does not have to be loaded from backend |
Property details
IThemeContextProviderProps.childrenproperty
React children
children?: ReactNode;
IThemeContextProviderProps.isScopeThemedproperty
Whether the theme object comes from ScopedThemeProvider
isScopeThemed?: boolean;
IThemeContextProviderProps.referenceThemeproperty
Theme of record for computations that must not depend on application-specific presentation adjustments (e.g. a stripped complementary palette).
referenceTheme?: ITheme;
Remarks
When undefined, the reference from an enclosing provider is inherited, falling back to the theme itself.
IThemeContextProviderProps.themeproperty
Theme object contains properties to be used instead of default ones. When undefined, no theme is applied and default styling is used.
theme: ITheme | undefined;
IThemeContextProviderProps.themeIsLoadingpropertyDeprecated
Warning: This API is now obsolete.
use themeStatus instead
Flag telling whether the theme object is being loaded or not
themeIsLoading: boolean;
IThemeContextProviderProps.themeStatusproperty
Status telling whether the theme object is being loaded or not Started in pending state, then switches to loading and finally to success Can skip loading if theme does not have to be loaded from backend
themeStatus?: ThemeStatus;