🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@hydroperx/drag4react

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hydroperx/drag4react

React drag-n-drop

latest
Source
npmnpm
Version
1.1.2
Version published
Maintainers
1
Created
Source

Drag for React

Drag-n-drop for React.

Getting started

import Draggable from "@hydroperx/drag4react";
import { useRef } from "react";

function Content()
{
    const div_ref = useRef<HTMLDivElement | null>(null);
    return (
        <Draggable nodeRef={div_ref}>
            <div ref={div_ref}>
                Drag me
            </div>
        </Draggable>
    );
}

Resulting property values

The library as part of the draggable dependency uses inset/left/top for moving elements.

Keywords

drag

FAQs

Package last updated on 18 Jul 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts