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

Function getItems

packages/react-aria/test/dnd/examples.js:24–30  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

22 let preview = useRef(null);
23 let {dragProps, isDragging} = useDrag({
24 getItems() {
25 return [
26 {
27 'text/plain': 'hello world'
28 }
29 ];
30 },
31 preview,
32 ...props
33 });

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected