Skip to main content

Home > blockly > Theme > getComponentStyle

Theme.getComponentStyle() method

Gets the style for a given Blockly UI component. If the style value is a string, we attempt to find the value of any named references.

Signature:

getComponentStyle(componentName: string): string | null;

Parameters

ParameterTypeDescription
componentNamestringThe name of the component.

Returns:

string | null

The style value.