API Reference > ui-components > DragDrop > withDragSource withDragSource FunctionConst Beta HOC (Higher-Order Component) that transforms wrapped component into a DragSource. withDragSource<ComponentProps extends { T }, DragDropObject>(Component: React.ComponentType<ComponentProps extends { T }>): DndComponentClass<ComponentProps extends { T } & WithDragSourceProps<DragDropObject>> Parameter Type Description Component React.ComponentType<ComponentProps extends { T }> component to wrap. Returns - DndComponentClass<ComponentProps extends { T } & WithDragSourceProps<DragDropObject>> Defined in ui/components/src/ui-components/dragdrop/withDragSource.tsx Line 61 Last Updated: 13 June, 2024