1.1.1 • Published 5 months ago

@hydroperx/drag4react v1.1.1

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
5 months ago

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.

1.1.1

5 months ago

1.1.0

5 months ago

1.0.3

6 months ago

1.0.2

6 months ago

1.0.1

6 months ago

1.0.0

6 months ago