useThemeContext
The useThemeContext
hook allows you to access or modify the theme and mode properties of the Cerberus Design System in multiple components.
When to use
This hook is ideal for when you need to access or modify the theme or mode properties of the Cerberus Design System in multiple components.
Usage
To use the useThemeContext
hook, you need to wrap the component using the hook with the Cerberus ThemeProvider
component.
When not to use
When you need to access or modify the theme or mode proprties in a single component, consider using the `useTheme` hook instead.
API
Arguments
The useThemeContext
hook accepts the same arguments as the useTheme hook.