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

Function TestListBox

packages/react-aria-components/test/ListBox.test.js:41–53  ·  view source on GitHub ↗
({listBoxProps, itemProps})

Source from the content-addressed store, hash-verified

39import {Virtualizer} from '../src/Virtualizer';
40
41let TestListBox = ({listBoxProps, itemProps}) => (
42 <ListBox aria-label="Test" {...listBoxProps}>
43 <ListBoxItem {...itemProps} id="cat">
44 Cat
45 </ListBoxItem>
46 <ListBoxItem {...itemProps} id="dog">
47 Dog
48 </ListBoxItem>
49 <ListBoxItem {...itemProps} id="kangaroo">
50 Kangaroo
51 </ListBoxItem>
52 </ListBox>
53);
54
55let DraggableListBox = props => {
56 let {dragAndDropHooks} = useDragAndDrop({

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected