How to use the @material/switch/dist/mdc.switch.MDCSwitch function in @material/switch

To help you get started, we’ve selected a few @material/switch 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 usebedrock / bedrock / content / js / material-imports.js View on Github external
function handleMDCSwitches(switchesEl) {
  for (var i = 0; i < switchesEl.length; i++) {
    new MDCSwitch(switchesEl[i]);
  }
};