@microsoft/fast-foundation > CSSCustomPropertyBehavior

CSSCustomPropertyBehavior class

A Behavior that will register to a CSSCustomPropertyTarget when bound.

Signature:
export declare class CSSCustomPropertyBehavior implements Behavior, CSSCustomPropertyDefinition

Constructors

ConstructorModifiersDescription
(constructor)(name, value, host)Constructs a new instance of the CSSCustomPropertyBehavior class

Properties

PropertyModifiersTypeDescription
nameCSSCustomPropertyDefinition["name"]The name of the CSS custom property.
propertyNamestringThe name of the CSSCustomPropertyBehavior formatted as a CSS custom property.
valueCSSCustomPropertyDefinition["value"]The value or function that will resolve the value of the CSS custom property.
varstringReturn the CSS custom property formatted as a CSS variable.