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

Function ColorSwatchPicker

starters/tailwind/src/ColorSwatchPicker.tsx:24–34  ·  view source on GitHub ↗
({children, ...props}: Omit<ColorSwatchPickerProps, 'layout'>)

Source from the content-addressed store, hash-verified

22});
23
24export function ColorSwatchPicker({children, ...props}: Omit<ColorSwatchPickerProps, 'layout'>) {
25 return (
26 <AriaColorSwatchPicker
27 {...props}
28 className={composeRenderProps(props.className, (className, renderProps) =>
29 pickerStyles({...renderProps, className})
30 )}>
31 {children}
32 </AriaColorSwatchPicker>
33 );
34}
35
36const itemStyles = tv({
37 extend: focusRing,

Callers

nothing calls this directly

Calls 1

composeRenderPropsFunction · 0.85

Tested by

no test coverage detected