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

Function DynamicPicker

packages/@react-spectrum/s2/test/Picker.test.tsx:23–39  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

21describe('Picker', () => {
22 let testUtilUser = new User();
23 function DynamicPicker(props) {
24 let {items, loadingState, onLoadMore, ...otherProps} = props;
25 return (
26 <Picker
27 {...otherProps}
28 label="Test picker"
29 items={items}
30 loadingState={loadingState}
31 onLoadMore={onLoadMore}>
32 {(item: any) => (
33 <PickerItem id={item.name} textValue={item.name}>
34 {item.name}
35 </PickerItem>
36 )}
37 </Picker>
38 );
39 }
40
41 beforeAll(function () {
42 jest.useFakeTimers();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected