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

Function ColorThumb

starters/tailwind/src/ColorThumb.tsx:21–33  ·  view source on GitHub ↗
(props: ColorThumbProps)

Source from the content-addressed store, hash-verified

19});
20
21export function ColorThumb(props: ColorThumbProps) {
22 return (
23 <AriaColorThumb
24 {...props}
25 style={({defaultStyle, isDisabled}) => ({
26 ...defaultStyle,
27 backgroundColor: isDisabled ? undefined : defaultStyle.backgroundColor,
28 boxShadow: '0 0 0 1px black, inset 0 0 0 1px black'
29 })}
30 className={thumbStyles}
31 />
32 );
33}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected