1.1.1 • Published 8 months ago

@hydroperx/drag4react v1.1.1

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
8 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

8 months ago

1.1.0

8 months ago

1.0.3

9 months ago

1.0.2

9 months ago

1.0.1

9 months ago

1.0.0

9 months ago