How to use the radium/lib/merge-styles.mergeStyles function in radium

To help you get started, we’ve selected a few radium 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 FormidableLabs / radium-grid / src / components / util / resolve-cell-styles.js View on Github external
const resolvePropStyles = (styles) => {
  if (styles && Array.isArray(styles)) {
    return mergeStyles(styles);
  }
  return styles ? styles : {};
};