Skip to main content

@microsoft/fast-element > cssPartial

cssPartial() function

Transforms a template literal string into partial CSS.

Signature:
export declare function cssPartial(strings: TemplateStringsArray, ...values: (ComposableStyles | CSSDirective)[]): CSSDirective;

Parameters

ParameterTypeDescription
stringsTemplateStringsArrayThe string fragments that are interpolated with the values.
values(ComposableStyles | CSSDirective)[]The values that are interpolated with the string fragments.
Returns:

CSSDirective