This package is a React.js component for creating draggable elements. It makes it easy to grab the DOM element and manipulate its position using mouse and touch.
How to use it:
1. Installation.
# Yarn
$ yarn add drag-react
# NPM
$ npm i drag-react
2. Import the drag-react
import { Draggable } from ‘drag-react’;
3. Create a draggable element in your app.
<Draggable> <div>Draggable Element</div> </Draggable>
4. Available props.
style?: Object, className?: string, children: any
Preview:
Download Details:
Author:
Live Demo: View The Demo
Download Link: Download The Source Code
License: