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

Function TestColorArea

packages/react-aria-components/test/ColorArea.test.js:20–24  ·  view source on GitHub ↗
({sliderProps, thumbProps})

Source from the content-addressed store, hash-verified

18import userEvent from '@testing-library/user-event';
19
20let TestColorArea = ({sliderProps, thumbProps}) => (
21 <ColorArea defaultValue="rgb(255, 0, 0)" xChannel="red" yChannel="green" {...sliderProps}>
22 <ColorThumb {...thumbProps} />
23 </ColorArea>
24);
25
26let renderColorArea = (sliderProps, thumbProps) =>
27 render(<TestColorArea {...{sliderProps, thumbProps}} />);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected