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