React Component For Draggable Elements – drag-react

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:

React Component For Draggable Elements

Download Details:

Author:

Live Demo: View The Demo

Download Link: Download The Source Code

Official Website:

License:

Add Comment