How to use the @xstyled/util.flattenStrings function in @xstyled/util

To help you get started, we’ve selected a few @xstyled/util examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github smooth-code / xstyled / packages / styled-components / src / css.js View on Github external
export function css(...rawArgs) {
  const scCssArgs = scCss(...rawArgs)
  const flattenedArgs = flattenStrings(scCssArgs)
  return flattenedArgs.map(transform)
}