MCPcopy
hub / github.com/thesysdev/openui / ensureLoadingStyle

Function ensureLoadingStyle

packages/react-lang/src/Renderer.tsx:174–180  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

172
173let loadingStyleInjected = false;
174function ensureLoadingStyle() {
175 if (loadingStyleInjected || typeof document === "undefined") return;
176 loadingStyleInjected = true;
177 const style = document.createElement("style");
178 style.textContent = `@keyframes openui-spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }`;
179 document.head.appendChild(style);
180}
181
182// ─── Public component ───
183

Callers 1

RendererFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected