0.0.3 • Published 2 years ago

@hnrq/draggable v0.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

npm version codecov

Get complete control over drag and drop behaviour with Draggable! Draggable abstracts native browser events into a comprehensive API to create a custom drag and drop experience. Draggable comes with additional modules: Sortable, Droppable, Swappable. Draggable itself does not perform any sorting behaviour while dragging, but does the heavy lifting, e.g. creates mirror, emits events, manages sensor events, makes elements draggable.

The additional modules are built on top of Draggable and therefore provide a similar API interface, for more information read the documentation below.

Features

  • Works with native drag, mouse, touch and force touch events
  • Can extend dragging behaviour by hooking into draggables event life cycle
  • Can extend drag detection by adding sensors to draggable
  • The library is targeted ES6 first

Table of Contents

Install

You can install the library via pnpm.

pnpm install @hnrq/draggable --save

Browser Compatibility

Documentation

You can find the documentation for each module within their respective directories.

Running examples

To run the examples project locally, simply run the following from the examples folder:

pnpm build && pnpm dev

Contributing

Contributions are more than welcome, the code base is still new and needs more love. For more information, please checkout CONTRIBUTING.md.

0.0.3

2 years ago

0.0.2

2 years ago

1.0.0

2 years ago

0.0.1

2 years ago