Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/adobe/react-spectrum
/ wrap
Function
wrap
packages/react-aria-components/src/ColorSwatchPicker.tsx:146–151 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
144
}, [color, map]);
145
146
let wrap = v => {
147
if (typeof v ===
'function'
) {
148
return renderProps => v({...renderProps, color});
149
}
150
return v;
151
};
152
153
return (
154
<ListBoxItem
Callers
2
ColorSwatchPicker.tsx
File · 0.85
composeRenderProps
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected