A thin wrapper around Sortable.js for Vue 3
The SortableJS-vue3Demo is a thin wrapper around the SortableJS library, designed to make migration easier for users encountering issues with other Vue draggable libraries like Vue.Draggable or vue.draggable.next. This wrapper aims to keep the user experience as close to SortableJS as possible, providing a simpler and more efficient solution.
To install the SortableJS-vue3Demo package, you can use npm:
npm install sortablejs-vue3
Alternatively, you can import the component in your <script setup> or <script> tags:
import Sortable from 'sortablejs-vue3';
Then utilize the component in your code:
<Sortable :list="items" itemKey="id">
<template v-slot="{ value }">
{{/* value */}}
</template>
</Sortable>
The SortableJS-vue3Demo is a valuable tool for Vue developers looking for a smooth migration path to SortableJS. With its simplicity, compatibility, flexibility in options, event handling support, and easy integration with stores, this wrapper provides a seamless experience for users needing draggable functionalities in their Vue projects. Its straightforward installation process and clear documentation make it a recommended choice for those seeking a reliable Vue draggable solution.