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

Function DraggableTree

packages/react-aria-components/test/Tree.test.tsx:366–373  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

364);
365
366let DraggableTree = props => {
367 let {dragAndDropHooks} = useDragAndDrop({
368 getItems: keys => [...keys].map(key => ({'text/plain': key})),
369 ...props
370 });
371
372 return <DynamicTree treeProps={{dragAndDropHooks}} />;
373};
374
375let DraggableTreeWithSelection = props => {
376 let {dragAndDropHooks} = useDragAndDrop({

Callers

nothing calls this directly

Calls 1

useDragAndDropFunction · 0.90

Tested by

no test coverage detected