Gathering detailed insights and metrics for vue-slicksort
Gathering detailed insights and metrics for vue-slicksort
Gathering detailed insights and metrics for vue-slicksort
Gathering detailed insights and metrics for vue-slicksort
@escola-ch/vue-slicksort
Set of mixins to turn any list into a sortable, touch-friendly, animated list
@atrubchik/vue-slicksort
Set of mixins to turn any list into a sortable, touch-friendly, animated list
@storipress/vue-slicksort
Set of mixins to turn any list into a sortable, touch-friendly, animated list
@spartez/vue-slicksort
Set of mixins to turn any list into a sortable, touch-friendly, animated list
A set of vue mixins to turn any list into an animated, touch-friendly, sortable list ✌️
npm install vue-slicksort
Typescript
Module System
Node Version
NPM Version
TypeScript (83.81%)
JavaScript (7.04%)
Vue (6.36%)
HTML (2.79%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
NOASSERTION License
1,484 Stars
538 Commits
155 Forks
24 Watchers
24 Branches
59 Contributors
Updated on Jun 25, 2025
Latest Version
2.0.5
Package Id
vue-slicksort@2.0.5
Unpacked Size
266.20 kB
Size
59.49 kB
File Count
9
NPM Version
8.19.3
Node Version
16.19.0
Published on
Feb 12, 2023
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
1
37
A set of component mixins to turn any list into an animated, touch-friendly, sortable list. Based on react-sortable-hoc by [@clauderic]
v-model
Compatible – Make any array editable with the v-model
standardUsing npm:
$ npm install vue-slicksort --save
Using yarn:
$ yarn add vue-slicksort
Using a CDN:
1<script src="https://unpkg.com/vue-slicksort@latest/dist/vue-slicksort.min.js"></script>
Then, using a module bundler that supports either CommonJS or ES2015 modules, such as webpack:
1// Using an ES6 transpiler like Babel 2import { ContainerMixin, ElementMixin } from 'vue-slicksort'; 3 4// Not using an ES6 transpiler 5var slicksort = require('vue-slicksort'); 6var ContainerMixin = slicksort.ContainerMixin; 7var ElementMixin = slicksort.ElementMixin;
If you are loading the package via <script>
tag:
1<script> 2 var { ContainerMixin, ElementMixin, HandleDirective } = window.VueSlicksort; 3</script>
Check out the docs: vue-slicksort.netlify.app
There are already a number of great Drag & Drop libraries out there (for instance, vuedraggable is fantastic). If those libraries fit your needs, you should definitely give them a try first. However, most of those libraries rely on the HTML5 Drag & Drop API, which has some severe limitations. For instance, things rapidly become tricky if you need to support touch devices, if you need to lock dragging to an axis, or want to animate the nodes as they're being sorted. Vue Slicksort aims to provide a simple set of component mixins to fill those gaps. If you're looking for a dead-simple, mobile-friendly way to add sortable functionality to your lists, then you're in the right place.
There are a few changes in v2, mainly support for Vue 3 and dragging between groups. Read more about migrating here: vue-slicksort.netlify.app/migrating-1x
The event names have all changed from camelCase to dash-case to accommodate for inline HTML templates.
Need to sort items in a grid? We've got you covered! Just set the axis
prop to xy
. Grid support is currently limited to a setup where all the cells in the grid have the same width and height, though we're working hard to get variable width support in the near future.
Upon sorting, vue-slicksort
creates a clone of the element you are sorting (the sortable-helper) and appends it to the end of the appendTo
tag. The original element will still be in-place to preserve its position in the DOM until the end of the drag (with inline-styling to make it invisible). If the sortable-helper gets messed up from a CSS standpoint, consider that maybe your selectors to the draggable item are dependent on a parent element which isn't present anymore (again, since the sortable-helper is at the end of the appendTo
prop). This can also be a z-index
issue, for example, when using vue-slicksort
within a Bootstrap modal, you'll need to increase the z-index
of the SortableHelper so it is displayed on top of the modal.
By default, vue-slicksort
is triggered immediately on mousedown
. If you'd like to prevent this behaviour, there are a number of strategies readily available. You can use the distance
prop to set a minimum distance (in pixels) to be dragged before sorting is enabled. You can also use the pressDelay
prop to add a delay before sorting is enabled. Alternatively, you can also use the HandleDirective.
If you are using scoped styles on the sortable list, you can use appendTo
prop.
Slicksort has no dependencies.
vue
is the only peerDependency
If believe you've found an issue, please report it along with any relevant details to reproduce it. The easiest way to do so is to fork this jsfiddle.
Please file an issue for personal support requests. Tag them with question
.
Yes please! Feature requests / pull requests are welcome.
This library is heavily based on react-sortable-hoc by Claudéric Demers (@clauderic). A very simple and low overhead implementation of drag and drop that looks and performs great!
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 4/26 approved changesets -- score normalized to 1
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
97 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-14
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More