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

Parameter Type Description
componentName string The name of the component.

Returns:

string | null

The style value.