open-index/open-npm huggingface dataset:
npm package: @hydroperx/draggable
Description: High performance, full featured drag and drop in a tiny (2k gzipped), dependency-free package
Author: Boris Cherny
Latest version: 1.2.6

# @hydroperx/draggable

<p align="center">
  <a href="./docs/globals.md"><img src="https://img.shields.io/badge/TypeScript%20API%20Documentation-gray"></a>
</p>

High performance, full featured drag and drop in a tiny (2k gzipped), dependency-free package.

> **Note:**
>
> @hydroperx/draggable is a modified copy of [`bcherny/draggable`](https://github.com/bcherny/draggable) v4. Credits to that original repository.

## Usage

**HTML**

```html
<div id="id"></div>
```

**TypeScript**

```js
import Draggable from "@hydroperx/draggable";
let element = document.getElementById("id");
new Draggable(element);
```