All Projects → Shopify → Draggable

Shopify / Draggable

Licence: mit
The JavaScript Drag & Drop library your grandparents warned you about.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Draggable

Muuri
Infinite responsive, sortable, filterable and draggable layouts
Stars: ✭ 9,797 (-37.48%)
Mutual labels:  drag-and-drop, draggable
Svgdragtree
一个可以通过拖放 SVG 图标,来生成拥有树状结构的视图与数据的前端组件。 SDT example:
Stars: ✭ 113 (-99.28%)
Mutual labels:  drag-and-drop, draggable
Lean Mean Drag And Drop
Drag&Drop Sorting and Reordering script for complex nested structures
Stars: ✭ 107 (-99.32%)
Mutual labels:  drag-and-drop, draggable
Angular Draggable Mat Tree
Example implementation of drag and drop on Angular Material Tree
Stars: ✭ 47 (-99.7%)
Mutual labels:  drag-and-drop, draggable
React Dragline
🐼Guide lines and magnetic adsorption to better align draggable elements in React.
Stars: ✭ 134 (-99.14%)
Mutual labels:  drag-and-drop, draggable
Vue Smooth Dnd
Vue wrapper components for smooth-dnd
Stars: ✭ 1,121 (-92.85%)
Mutual labels:  drag-and-drop, draggable
React Smooth Dnd
react wrapper components for smooth-dnd
Stars: ✭ 1,560 (-90.05%)
Mutual labels:  drag-and-drop, draggable
Smooth Dnd
drag and drop library for javascript
Stars: ✭ 408 (-97.4%)
Mutual labels:  drag-and-drop, draggable
Dnd Kit
A modern, lightweight, performant, accessible and extensible drag & drop toolkit for React.
Stars: ✭ 3,456 (-77.95%)
Mutual labels:  draggable, drag-and-drop
Flutter remote control
flutter remote control
Stars: ✭ 124 (-99.21%)
Mutual labels:  drag-and-drop, draggable
Dragmove.js
A super tiny Javascript library to make DOM elements draggable and movable. ~500 bytes and no dependencies.
Stars: ✭ 757 (-95.17%)
Mutual labels:  drag-and-drop, draggable
Angular Grid Layout
Responsive grid with draggable and resizable items for Angular applications.
Stars: ✭ 163 (-98.96%)
Mutual labels:  drag-and-drop, draggable
Dragact
a dragger layout system with React style .
Stars: ✭ 710 (-95.47%)
Mutual labels:  drag-and-drop, draggable
Jquery Sortablejs
A jQuery binding for SortableJS
Stars: ✭ 94 (-99.4%)
Mutual labels:  drag-and-drop, draggable
Sortable
Reorderable drag-and-drop lists for modern browsers and touch devices. No jQuery or framework required.
Stars: ✭ 23,641 (+50.86%)
Mutual labels:  drag-and-drop, draggable
Flowy Vue
Vue Flowy makes creating flowchart or hierarchy chart functionality an easy task. Build automation software, mind mapping tools, organisation charts, or simple programming platforms in minutes by implementing the library into your project.
Stars: ✭ 107 (-99.32%)
Mutual labels:  drag-and-drop, draggable
vite-vue3-lowcode
vue3.x + vite2.x + vant + element-plus H5移动端低代码平台 lowcode 可视化拖拽 可视化编辑器 visual editor 类似易企秀的H5制作、建站工具、可视化搭建工具
Stars: ✭ 1,309 (-91.65%)
Mutual labels:  drag-and-drop, draggable
Draggable Vue Directive
Vue2 directive that handles drag & drop
Stars: ✭ 286 (-98.17%)
Mutual labels:  drag-and-drop, draggable
React Kanban Dnd
📋 Open source kanban board built with React
Stars: ✭ 121 (-99.23%)
Mutual labels:  drag-and-drop, draggable
Ngx Smooth Dnd
angular wrapper for smooth-dnd
Stars: ✭ 152 (-99.03%)
Mutual labels:  drag-and-drop, draggable

CircleCI npm version codecov Greenkeeper badge

Development

Draggable is no longer maintained by its original authors. Maintenance of this repo has been passed on to new collaborators and is no longer worked on by anyone at Shopify.

We are still looking for more maintainers! If anyone is interested in answering / triaging issues, reviewing / rejecting / approving PRs, and authoring code for bug fixes / new features — please send an email to curtis.dulmage (at) shopify (dot) com. You may be asked a few questions before obtaining collaboration permission, but if everything checks out, we will happily add you as a collaborator.


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

NOTE: When installing with npm or yarn, @shopify/[email protected] will be installed by default. If you want to install the latest version, please install @shopify/[email protected] or @shopify/draggable@next.

You can install the library via npm.

npm install @shopify/draggable --save

or via yarn:

yarn add @shopify/draggable

or via CDN

<!-- Entire bundle -->
<script src="https://cdn.jsdelivr.net/npm/@shopify/[email protected]/lib/draggable.bundle.js"></script>
<!-- legacy bundle for older browsers (IE11) -->
<script src="https://cdn.jsdelivr.net/npm/@shopify/[email protected]/lib/draggable.bundle.legacy.js"></script>
<!-- Draggable only -->
<script src="https://cdn.jsdelivr.net/npm/@shopify/[email protected]/lib/draggable.js"></script>
<!-- Sortable only -->
<script src="https://cdn.jsdelivr.net/npm/@shopify/[email protected]/lib/sortable.js"></script>
<!-- Droppable only -->
<script src="https://cdn.jsdelivr.net/npm/@shopify/[email protected]/lib/droppable.js"></script>
<!-- Swappable only -->
<script src="https://cdn.jsdelivr.net/npm/@shopify/[email protected]/lib/swappable.js"></script>
<!-- Plugins only -->
<script src="https://cdn.jsdelivr.net/npm/@shopify/[email protected]/lib/plugins.js"></script>

Browser Compatibility

Chrome Firefox IE Opera Safari Edge
Latest Latest 11+ Latest Latest Latest

Bundle sizes

Package name ES6 bundle sizes ES5 bundle sizes
draggable.bundle.js ~11kb ~19.2kb
draggable.bundle.legacy.js ~19.2kb ~25.63kb
draggable.js ~8.06kb ~15.36kb
sortable.js ~8.93kb ~16.51kb
swappable.js ~8.56kb ~16.14kb
droppable.js ~8.8kb ~16.55kb
plugins.js ~2.37kb ~8.76kb
plugins/collidable.js ~1.45kb ~7.81kb
plugins/snappable.js ~1.19kb ~6.94kb
plugins/swap-animation.js ~1kb ~6.65kb

Documentation

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

TypeScript

(Added in: v1.0.0-beta.9)

Draggable includes TypeScript definitions.

Documentation

Running examples

To run the examples project locally, simply run the following from the draggable root:

yarn && yarn start

This will start a server that hosts the contents of examples/. It also watches for file changes from both src/ and examples/src and reloads the browser.

Contributing

Contributions are more than welcome, the code base is still new and needs more love.

For more information, please checkout the contributing document.

Roadmap

We are currently working on v1.0.0-beta.12. Check out the project board to see tasks and follow progress on the release. Any Pull Requests should be pointed against the feature branch v1.0.0-beta.12.

Related resources

Copyright

Copyright (c) 2018 Shopify. See LICENSE.md for further details.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].