API Reference > ui-components > Tree > withTreeDragDrop withTreeDragDrop Function Beta @deprecated A HOC component that adds drag and drop functionality to the supplied tree component. withTreeDragDrop<P extends TreeProps, DragDropObject extends TreeDragDropType>(TreeComponent: React.ComponentType<P extends TreeProps>): React.ComponentType<P extends TreeProps & TreeDragDropProps<DragDropObject extends TreeDragDropType>> Parameter Type Description TreeComponent React.ComponentType<P extends TreeProps> Returns - React.ComponentType<P extends TreeProps & TreeDragDropProps<DragDropObject extends TreeDragDropType>> Defined in ui/components/src/ui-components/tree/hocs/withDragDrop.tsx Line 40 Last Updated: 13 June, 2024