const template = document.createElement('template'); template.innerHTML = ` `; class MaterialIconElement extends HTMLElement { constructor() { super(); this.attachShadow({ mode: 'open' }).appendChild( template.content.cloneNode(true) ); } } if (!customElements.get('mwc-icon')) { customElements.define('mwc-icon', MaterialIconElement); }