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

Function ColorWheel

starters/tailwind/src/ColorWheel.tsx:12–27  ·  view source on GitHub ↗
(props: ColorWheelProps)

Source from the content-addressed store, hash-verified

10export interface ColorWheelProps extends Omit<AriaColorWheelProps, 'outerRadius' | 'innerRadius'> {}
11
12export function ColorWheel(props: ColorWheelProps) {
13 return (
14 <AriaColorWheel {...props} outerRadius={100} innerRadius={74}>
15 <ColorWheelTrack
16 className="disabled:bg-neutral-300 dark:disabled:bg-neutral-800 forced-colors:disabled:bg-[GrayText]"
17 style={({defaultStyle, isDisabled}) => ({
18 ...defaultStyle,
19 background: isDisabled
20 ? undefined
21 : `${defaultStyle.background}, repeating-conic-gradient(#CCC 0% 25%, white 0% 50%) 50% / 16px 16px`
22 })}
23 />
24 <ColorThumb />
25 </AriaColorWheel>
26 );
27}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected