MCPcopy
hub / github.com/davidhu2000/react-spinners / style

Function style

src/SyncLoader.tsx:31–42  ·  view source on GitHub ↗
(i: number)

Source from the content-addressed store, hash-verified

29 };
30
31 const style = (i: number): React.CSSProperties => {
32 return {
33 backgroundColor: color,
34 width: cssValue(size),
35 height: cssValue(size),
36 margin: cssValue(margin),
37 borderRadius: "100%",
38 display: "inline-block",
39 animation: `${sync} ${0.6 / speedMultiplier}s ${i * 0.07}s infinite ease-in-out`,
40 animationFillMode: "both",
41 };
42 };
43
44 if (!loading) {
45 return null;

Callers 1

SyncLoaderFunction · 0.70

Calls 1

cssValueFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…