UNPKG

styled-components

Version:

Visual primitives for the component age. Use the best bits of ES6 and CSS to style your apps without stress 💅

9 lines (7 loc) • 293 B
// @flow import interleave from '../utils/interleave' import flatten from '../utils/flatten' import type { Interpolation, RuleSet } from '../types' export default (strings: Array<string>, ...interpolations: Array<Interpolation>): RuleSet => ( flatten(interleave(strings, interpolations)) )