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

Function ColorSlider

starters/docs/src/ColorSlider.tsx:16–30  ·  view source on GitHub ↗
({label, ...props}: ColorSliderProps)

Source from the content-addressed store, hash-verified

14}
15
16export function ColorSlider({label, ...props}: ColorSliderProps) {
17 return (
18 <AriaColorSlider {...props}>
19 <Label>{label}</Label>
20 <SliderOutput />
21 <SliderTrack
22 style={({defaultStyle}) => ({
23 background: `${defaultStyle.background},
24 repeating-conic-gradient(#CCC 0% 25%, white 0% 50%) 50% / 16px 16px`
25 })}>
26 <ColorThumb />
27 </SliderTrack>
28 </AriaColorSlider>
29 );
30}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected