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

Function setColor

packages/react-stately/src/color/useColorPickerState.ts:23–27  ·  view source on GitHub ↗
(color)

Source from the content-addressed store, hash-verified

21 return {
22 color,
23 setColor(color) {
24 if (color != null) {
25 setColor(color || parseColor('#000000'));
26 }
27 }
28 };
29}

Callers

nothing calls this directly

Calls 1

parseColorFunction · 0.90

Tested by

no test coverage detected