feat(html): add element registrations

This commit is contained in:
Rahim
2025-10-30 04:51:51 +00:00
parent 9e4af60361
commit eaaa03c284
54 changed files with 374 additions and 409 deletions
@@ -0,0 +1,7 @@
export function defineCustomElement(tagName: string, ctor: CustomElementConstructor): void {
if (typeof window === 'undefined') return;
if (window.customElements.get(tagName)) return;
window.customElements.define(tagName, ctor);
}