Gathering detailed insights and metrics for vue-slick
Gathering detailed insights and metrics for vue-slick
Gathering detailed insights and metrics for vue-slick
Gathering detailed insights and metrics for vue-slick
vue-slick-carousel
Vue Slick Carousel with True SSR Written for Faster Luxstay
vue-slick-ts
Vue/Nuxt component for slick-carousel with full Typescript
v-slick-carousel
Vue Slick Carousel for Vue 3
vue-color-input
Slick and perfomant vue 3 color picker component whose goal is to replace <input type=color>
Vue component for Slick-carousel (http://kenwheeler.github.io/slick)
npm install vue-slick
Typescript
Module System
Node Version
NPM Version
88.4
Supply Chain
100
Quality
79.7
Maintenance
100
Vulnerability
100
License
Vue (81.64%)
JavaScript (16.69%)
Shell (1.67%)
Total Downloads
4,270,823
Last Day
1,960
Last Week
9,434
Last Month
36,130
Last Year
475,014
614 Stars
88 Commits
110 Forks
17 Watchers
3 Branches
21 Contributors
Updated on Feb 11, 2025
Minified
Minified + Gzipped
Latest Version
1.2.0
Package Id
vue-slick@1.2.0
Unpacked Size
34.95 kB
Size
5.28 kB
File Count
9
NPM Version
8.3.1
Node Version
16.14.0
Cumulative downloads
Total Downloads
Last Day
-3.4%
1,960
Compared to previous day
Last Week
7.2%
9,434
Compared to previous week
Last Month
-8.4%
36,130
Compared to previous month
Last Year
-26.2%
475,014
Compared to previous year
1
1
This package is no longer supported by its main contributor (@staskjs). If you would like to work on it, I will gladly add you as a collaborator. Please reach me on telegram @staskjs.
Supports only Vue >= 2
See official documentation here.
1npm install vue-slick 2# or 3yarn add vue-slick
NOTE: slick-carousel
official package appears to use jquery
as a dependency in package.json,
despite it would be more appropriate to use it as a peer dependency to avoid possibility of using multiple
versions of jquery. Be aware of that. When using webpack
you can solve this problem with aliases.
1import Slick from 'vue-slick'; 2 3new Vue({ 4 5 components: { Slick }, 6 7 data() { 8 return { 9 slickOptions: { 10 slidesToShow: 3, 11 // Any other options that can be got from plugin documentation 12 }, 13 }; 14 }, 15 16 // All slick methods can be used too, example here 17 methods: { 18 next() { 19 this.$refs.slick.next(); 20 }, 21 22 prev() { 23 this.$refs.slick.prev(); 24 }, 25 26 reInit() { 27 // Helpful if you have to deal with v-for to update dynamic lists 28 this.$nextTick(() => { 29 this.$refs.slick.reSlick(); 30 }); 31 }, 32 33 // Events listeners 34 handleAfterChange(event, slick, currentSlide) { 35 console.log('handleAfterChange', event, slick, currentSlide); 36 }, 37 handleBeforeChange(event, slick, currentSlide, nextSlide) { 38 console.log('handleBeforeChange', event, slick, currentSlide, nextSlide); 39 }, 40 handleBreakpoint(event, slick, breakpoint) { 41 console.log('handleBreakpoint', event, slick, breakpoint); 42 }, 43 handleDestroy(event, slick) { 44 console.log('handleDestroy', event, slick); 45 }, 46 handleEdge(event, slick, direction) { 47 console.log('handleEdge', event, slick, direction); 48 }, 49 handleInit(event, slick) { 50 console.log('handleInit', event, slick); 51 }, 52 handleReInit(event, slick) { 53 console.log('handleReInit', event, slick); 54 }, 55 handleSetPosition(event, slick) { 56 console.log('handleSetPosition', event, slick); 57 }, 58 handleSwipe(event, slick, direction) { 59 console.log('handleSwipe', event, slick, direction); 60 }, 61 handleLazyLoaded(event, slick, image, imageSource) { 62 console.log('handleLazyLoaded', event, slick, image, imageSource); 63 }, 64 handleLazyLoadError(event, slick, image, imageSource) { 65 console.log('handleLazeLoadError', event, slick, image, imageSource); 66 }, 67 }, 68});
1<slick 2 ref="slick" 3 :options="slickOptions" 4 @afterChange="handleAfterChange" 5 @beforeChange="handleBeforeChange" 6 @breakpoint="handleBreakpoint" 7 @destroy="handleDestroy" 8 @edge="handleEdge" 9 @init="handleInit" 10 @reInit="handleReInit" 11 @setPosition="handleSetPosition" 12 @swipe="handleSwipe" 13 @lazyLoaded="handleLazyLoaded" 14 @lazyLoadError="handleLazyLoadError"> 15 <a href="http://placehold.it/2000x1000"><img src="http://placehold.it/2000x1000" alt=""></a> 16 <a href="http://placehold.it/2000x1000"><img src="http://placehold.it/2000x1000" alt=""></a> 17 <a href="http://placehold.it/2000x1000"><img src="http://placehold.it/2000x1000" alt=""></a> 18 <a href="http://placehold.it/2000x1000"><img src="http://placehold.it/2000x1000" alt=""></a> 19 <a href="http://placehold.it/2000x1000"><img src="http://placehold.it/2000x1000" alt=""></a> 20</slick>
If you need, you can import slick styles too:
1// MyCarrousel.vue 2import 'slick-carousel/slick/slick.css';
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
Found 5/16 approved changesets -- score normalized to 3
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
license file not detected
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
14 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-05-12
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