Skip to main content

Function: useThemeSetting()

useThemeSetting(path, blockName, defaultValue, fallbackToGlobalSetting): any

Defined in: packages/core/src/react/provider/useThemeSetting.ts:15

Returns a single theme setting normalized

Parameters

path

string

The path to the setting

blockName

The block name

null | string

defaultValue

any = ''

the default value to return

fallbackToGlobalSetting

boolean = true

Whether it should fallback to global setting if blockName is passed but setting does not exist

Returns

any