Skip to content

useThemeOverride ​

Overview ​

Merge a theme object with another theme object and provide the result for child components.

Signature ​

useThemeOverride(localOverride, configOverride)

Parameters ​

NameTypeRequiredDescription
localOverrideanyyesThe override from the current component (e.g. a prop).
configOverrideanyyesOptional "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:256