class CodeVisualizer extends HTMLElement {
connectedCallback() {
this.attachShadow({ mode: 'open' });
this.shadowRoot.innerHTML = `
`;
// Replace feather icons after content is loaded
setTimeout(() => {
if (window.feather) {
window.feather.replace();
}
}, 100);
}
}
customElements.define('code-visualizer', CodeVisualizer);