How to use the radium/lib/append-px-if-needed 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 c3subtitles / L2S2 / src / Helper / CSS.jsx View on Github external
_.each(style, (value, key: string) => {
    if (_.isObject(value)) {
      style[key] = appendUnits(value);
    } else {
      style[key] = appendPxIfNeeded(key, value);
    }
  });
  return style;