How to use the simplebar/dist/simplebar-core.esm.defaultOptions function in simplebar

To help you get started, we’ve selected a few simplebar 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 Grsmto / simplebar / packages / simplebar-react / index.js View on Github external
Object.keys(otherProps).forEach(key => {
      if (
        Object.prototype.hasOwnProperty.call(SimpleBarJS.defaultOptions, key)
      ) {
        options[key] = otherProps[key];
      } else if (key.match(/data-simplebar-(.+)/)) {
        deprecatedOptions.push({
          name: key,
          value: otherProps[key]
        });
      } else {
        rest[key] = otherProps[key];
      }
    });