MCPcopy Create free account
hub / github.com/adobe/react-spectrum / setValue

Function setValue

packages/react-stately/src/color/useColorAreaState.ts:178–180  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

176 value: color,
177 defaultValue: value !== undefined ? initialValue : (defaultValue as Color),
178 setValue(value) {
179 setColor(normalizeColor(value));
180 },
181 xValue,
182 setXValue,
183 yValue,

Callers

nothing calls this directly

Calls 2

normalizeColorFunction · 0.90
setColorFunction · 0.70

Tested by

no test coverage detected