@microsoft/fast-element > CSSTemplateTag
CSSTemplateTag type
Transforms a template literal string into styles.
Signature:
export type CSSTemplateTag = (<TSource = any, TParent = any>(strings: TemplateStringsArray, ...values: CSSValue<TSource, TParent>[]) => ElementStyles) & {
partial<TSource = any, TParent = any>(strings: TemplateStringsArray, ...values: CSSValue<TSource, TParent>[]): CSSDirective;
};
References: CSSValue, ElementStyles, CSSDirective
Remarks
The css helper supports interpolation of strings and ElementStyle instances. Use the .partial method to create partial CSS fragments.