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

Function cssValue

src/helpers/unitConverter.ts:71–75  ·  view source on GitHub ↗
(value: number | string)

Source from the content-addressed store, hash-verified

69 * @return {string} valid css value
70 */
71export function cssValue(value: number | string): string {
72 const lengthWithunit = parseLengthAndUnit(value);
73
74 return `${lengthWithunit.value}${lengthWithunit.unit}`;
75}

Callers 15

DotLoaderFunction · 0.90
styleFunction · 0.90
styleFunction · 0.90
ballStyleFunction · 0.90
PacmanLoaderFunction · 0.90
pacmanStyleFunction · 0.90
RotateLoaderFunction · 0.90
ballStyleFunction · 0.90
styleFunction · 0.90
styleFunction · 0.90
PuffLoaderFunction · 0.90
styleFunction · 0.90

Calls 1

parseLengthAndUnitFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…