[Demo](https://sortablejs-vue3.maxleiter.com) | [npm](https://www.npmjs.com/package/sortablejs-vue3)
npm install sortablejs-vue3This is a thin wrapper around the great SortableJS library. I had many issues migrating from Vue.Draggable to vue.draggable.next, and after briefly investigating I decided that it was too complicated and a smaller solution was the answer. This wrapper attempts to keep you as close to Sortable as possible.
- Vue.Draggable only supports Vue 2
- vue.draggable.next uses the Options API, has multiple open (and afaict useful) pull requests, and had weird bugs/side-effects when I tried and used it
- shopify/draggable and vue-shopify-dragable seemed promising but they don't supported nested components
You can see a demo with more complete code at https://sortablejs-vue3.maxleiter.com.
1. Install the package:
``bash`
pnpm add sortablejs-vue3 sortablejs
or
`bash`
npm install sortablejs-vue3 sortablejs
2. Import the component in your