Converts a style object with an arbitrary selector to a valid CSS string.
The style properties to convert
The CSS selector to use
The CSS string representation
import * as Styles from '@universityofmaryland/web-styles-library';const css = Styles.utilities.transform.jss.convertToSelectorCSS( { color: 'blue', fontSize: 16, '@media (min-width: 768px)': { self: { fontSize: 20 } } }, '#my-element'); Copy
import * as Styles from '@universityofmaryland/web-styles-library';const css = Styles.utilities.transform.jss.convertToSelectorCSS( { color: 'blue', fontSize: 16, '@media (min-width: 768px)': { self: { fontSize: 20 } } }, '#my-element');
1.3.0
Converts a style object with an arbitrary selector to a valid CSS string.