Access the theme API from within a component tree wrapped by ThemeProvider.
Returns { color, style, themeId, themes, setTheme, mergeTheme, addThemes }.
{ color, style, themeId, themes, setTheme, mergeTheme, addThemes }
Must be used inside <ThemeProvider>. Throws with a clear error message if no provider is found in the component tree.
<ThemeProvider>
Access the theme API from within a component tree wrapped by ThemeProvider.
Returns
{ color, style, themeId, themes, setTheme, mergeTheme, addThemes }.Must be used inside
<ThemeProvider>. Throws with a clear error message if no provider is found in the component tree.