class CustomHeader extends HTMLElement { connectedCallback() { this.attachShadow({ mode: 'open' }); this.shadowRoot.innerHTML = `
`; // Initialize feather icons in shadow DOM import('https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js').then(() => { setTimeout(() => { feather.replace({ icons: this.shadowRoot.querySelectorAll('[data-feather]') }); }, 0); }); } } customElements.define('custom-header', CustomHeader);