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