1.0.2 • Published 4 months ago

com.hydroper.reactdraggable v1.0.2

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
4 months ago

Draggable

Drag-n-drop for React.

Getting started

import Draggable from "com.hydroper.reactdraggable";
import { useRef } from "react";

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

Resulting property values

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

1.0.2

4 months ago

1.0.1

4 months ago

1.0.0

4 months ago