class HeaderComponent extends HTMLElement { connectedCallback() { this.attachShadow({ mode: 'open' }); this.shadowRoot.innerHTML = `
`; // Initialize Feather Icons const script = document.createElement('script'); script.src = 'https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js'; script.onload = () => { feather.replace(); }; this.shadowRoot.appendChild(script); } } customElements.define('header-component', HeaderComponent);