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

Function TestSlider

packages/react-aria-components/test/Slider.test.js:26–35  ·  view source on GitHub ↗
({sliderProps, thumbProps, trackProps, outputProps, fillProps})

Source from the content-addressed store, hash-verified

24import userEvent from '@testing-library/user-event';
25
26let TestSlider = ({sliderProps, thumbProps, trackProps, outputProps, fillProps}) => (
27 <Slider {...sliderProps}>
28 <Label>Opacity</Label>
29 <SliderOutput {...outputProps} />
30 <SliderTrack {...trackProps}>
31 <SliderFill {...fillProps} />
32 <SliderThumb {...thumbProps} />
33 </SliderTrack>
34 </Slider>
35);
36
37let renderSlider = (sliderProps, thumbProps, trackProps, outputProps) =>
38 render(<TestSlider {...{sliderProps, thumbProps, trackProps, outputProps}} />);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected