Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/adobe/react-spectrum
/ setValue
Function
setValue
packages/react-stately/src/color/useColorSliderState.ts:110–112 ·
view source on GitHub ↗
(value)
Source
from the content-addressed store, hash-verified
108
...sliderState,
109
value: color,
110
setValue(value) {
111
setColor(normalizeColor(value));
112
},
113
getDisplayColor() {
114
switch (channel) {
115
case
'hue'
:
Callers
nothing calls this directly
Calls
2
normalizeColor
Function · 0.90
setColor
Function · 0.70
Tested by
no test coverage detected