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

Function setColor

packages/react-stately/src/color/useColorAreaState.ts:135–138  ·  view source on GitHub ↗
(color: Color)

Source from the content-addressed store, hash-verified

133 );
134 let valueRef = useRef(color);
135 let setColor = (color: Color) => {
136 valueRef.current = color;
137 setColorState(color);
138 };
139
140 let channels = useMemo(
141 () => color.getColorSpaceAxes({xChannel, yChannel}),

Callers 13

onChangeFunction · 0.70
setValueFunction · 0.70
setXValueFunction · 0.70
setYValueFunction · 0.70
setValueFunction · 0.70
setColorFromPointFunction · 0.70
onChangeFunction · 0.50
onChangeFunction · 0.50
onChangeFunction · 0.50
onChangeEndFunction · 0.50
onChangeFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected