css() function
Transforms a template literal string into styles.
Signature:export declare function css(strings: TemplateStringsArray, ...values: (ComposableStyles | CSSDirective)[]): ElementStyles;
Parameters
Parameter | Type | Description |
---|---|---|
strings | TemplateStringsArray | The string fragments that are interpolated with the values. |
values | (ComposableStyles | CSSDirective)[] | The values that are interpolated with the string fragments. |
Remarks
The css helper supports interpolation of strings and ElementStyle instances.