vue-dnd-zone

Data Driven Drag and Drop functionality for Vue.js
141,989 151
Install
npm install vue-dnd-zone
Latest Version:0.4.0
License:ISC
Last Updated:Mar 17, 2021
Links: GitHub  ·  npm
Maintainer: supraniti

vue-dnd-zone

Drag And Drop functionality for Vue.js - written in Vue.js

vue-dnd-zone is a vue.js plugin for drag and drop functionality. It is not a wrapper for an external js library, but a set of vue components managing the drag and drop event and data model state

Examples, Demo, API:

https://supraniti.github.io/vue-dnd-zone/

Features

  • Smooth transitions
  • Auto scroll while dragging
  • Supports nested structures
  • Lightweight (~4kb gzipped)
  • Supports touch events

Installation

npm install vue-dnd-zone
//main.js
import VueDndZone from 'vue-dnd-zone'
import 'vue-dnd-zone/vue-dnd-zone.css'

Usage

  <dnd-zone>
    <dnd-container>
      <dnd-item>
        <!-- item markup goes here -->
      </dnd-item>
    </dnd-container>
  </dnd-zone>

Development

vue-dnd-zone is currently in a POC (proof of concept) state, Further development can and will be done, but it might take a while :-) If you want to support its progress, star the repository on github

License

MIT

Related Packages

vue-dndrop

Vue wrappers for drag and drop

560,182 233
vuetify-draggable-treeview

draggable v-treeview component

19,529 89
vue3-sortablejs

A directive for Sortable on Vue 3

41,831 25
vue3-draggable

simple drag&drop component for vue 3.x

292,920 36

Version History

Version Released License
0.4.0 ISC
0.3.0 ISC
0.2.1 ISC
0.2.0 ISC
0.1.0 ISC