import { t as e } from "../../utils-C_mWfcFX.js";
//#region src/primitives/skeleton/index.ts
var t = class {
	el;
	constructor(t) {
		let n = t.variant ?? "text";
		this.el = document.createElement("div"), this.el.className = `cmm-skeleton cmm-skeleton--${n}`, this.el.setAttribute("aria-hidden", "true"), t.className && this.el.classList.add(t.className), t.width !== void 0 && (this.el.style.width = t.width), t.height !== void 0 && (this.el.style.height = t.height), t.container !== void 0 && e(t.container).appendChild(this.el);
	}
	setSize(e, t) {
		this.el.style.width = e, this.el.style.height = t;
	}
	destroy() {
		this.el.remove();
	}
};
//#endregion
export { t as Skeleton };

//# sourceMappingURL=index.js.map