class CustomNavbar extends HTMLElement {
connectedCallback() {
this.attachShadow({ mode: 'open' });
this.shadowRoot.innerHTML = `
`;
// Feather icons need to be replaced after insertion
setTimeout(() => {
if (window.feather) {
feather.replace();
}
}, 100);
}
}
customElements.define('custom-navbar', CustomNavbar);