JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 5
  • Score
    100M100P100Q56662F
  • License MIT

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

Package Exports

  • @hydroperx/draggable

Readme

@hydroperx/draggable

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 v4. Credits to that original repository.

Usage

HTML

<div id="id"></div>

TypeScript

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