@microsoft/fast-element > CSSDirective

CSSDirective variable

Instructs the css engine to provide dynamic styles or associate behaviors with styles.

Signature:

CSSDirective: Readonly<{
    getForInstance: (object: any) => CSSDirectiveDefinition<Constructable<CSSDirective>> | undefined;
    getByType: (key: Function) => CSSDirectiveDefinition<Constructable<CSSDirective>> | undefined;
    define<TType extends Constructable<CSSDirective>>(type: any): TType;
}>