class CustomSidebar extends HTMLElement { constructor() { super(); this.activeTab = this.getAttribute('active') || 'dashboard'; } connectedCallback() { this.attachShadow({ mode: 'open' }); this.shadowRoot.innerHTML = ` `; } } customElements.define('custom-sidebar', CustomSidebar);