simple drag&drop component for vue 3.x
npm install vue3-draggablelist-based drag&drop component for vue 3.x, with no dependencies
- support v-model
- support transition
- customizable draggable component
Nested useage is currently not supported
```
npm i vue3-draggable
`bash
git clone https://github.com/shkilo/vue3-draggable.git
npm i
npm run serve
`
import component:
`javascript
import Draggable from "vue3-draggable";
export default {
components: {
Draggable,
},
};
`
template:
`vue``
{{item.title}}
This componet is implemented based on v-slot
| Name | Required | Type | Description |
| :--------- | :------- | :----- | :------------------------------- |
| modelValue | REQUIRED | ARRAY | v-model value, items to be bound |
| transition | OPTIONAL | STRING | transition delay in ms |