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

Function ColorArea

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

Source from the content-addressed store, hash-verified

10export interface ColorAreaProps extends AriaColorAreaProps {}
11
12export function ColorArea(props: ColorAreaProps) {
13 return (
14 <AriaColorArea
15 {...props}
16 className={composeTailwindRenderProps(
17 props.className,
18 'w-full max-w-56 aspect-square rounded-lg bg-neutral-300 dark:bg-neutral-800 forced-colors:bg-[GrayText]'
19 )}
20 style={({defaultStyle, isDisabled}) => ({
21 ...defaultStyle,
22 background: isDisabled ? undefined : defaultStyle.background
23 })}>
24 <ColorThumb />
25 </AriaColorArea>
26 );
27}

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected