class FluxHeader extends HTMLElement {
connectedCallback() {
this.attachShadow({ mode: 'open' });
this.shadowRoot.innerHTML = `
`;
// Initialize Feather Icons after rendering
setTimeout(() => {
const icons = this.shadowRoot.querySelectorAll('[data-feather]');
icons.forEach(icon => {
const iconName = icon.getAttribute('data-feather');
const svg = feather.icons[iconName].toSvg();
icon.outerHTML = svg;
});
}, 0);
}
}
customElements.define('flux-header', FluxHeader);