class CustomSidebar extends HTMLElement { connectedCallback() { this.attachShadow({ mode: 'open' }); this.shadowRoot.innerHTML = ` `; // Replace feather icons after component is rendered setTimeout(() => { if (window.feather) { window.feather.replace({ class: 'feather-inline' }); } }, 0); } } customElements.define('custom-sidebar', CustomSidebar);