import { FluentComponent } from '../core/fluent-component' import { createUniversalComponent } from '../core/component-factory' class FluentSkeletonInternal extends FluentComponent { static tag = 'fluent-skeleton' static override get observedAttributes() { return ['width', 'height'] } render() { const w = this.getAttribute('width') || '100%' const h = this.getAttribute('height') || '1rem' this.shadowRootRef.innerHTML = `
` } } export const FluentSkeleton = createUniversalComponent({ tag: 'fluent-skeleton', class: FluentSkeletonInternal }) if (typeof window !== 'undefined') { if (!customElements.get(FluentSkeletonInternal.tag)) { customElements.define(FluentSkeletonInternal.tag, FluentSkeletonInternal) } }