useThemeOverride
Overview
Merge a theme object with another theme object and provide the result for child components.
Signature
useThemeOverride(localOverride, configOverride)
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| localOverride | any | yes | The override from the current component (e.g. a prop). |
| configOverride | any | yes | Optional "base" config (e.g. default config for your component). |
Returns
ComputedRef
A merged override that includes ancestor overrides + local overrides.
Source
client/lib/use/useTheme.js:234