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:234

Documents matching: server v3.0.0a1.post1client v3.0.0-alpha.2