vue-slick-ts

Vue/Nuxt component for slick-carousel with full Typescript
43,930 8
Install
npm install vue-slick-ts
Latest Version:1.1.0
Older releases:3
License:MIT
Last Updated:Jun 10, 2023
Links: GitHub  ·  npm
Maintainer: efcolipt

Support

Package support ESM, UMD, CJS Package can install via NPM/YARN or just add script CDN

Package support only Vue >=3.2 version For legacy support see here

Installation

Installation by CDN

Just add script to your project to footer in your body tag

<script src="https://unpkg.com/vue-slick-ts@latest"></script>

Installation by Npm/Yarn

Prerequisite

npm install -D @types/jquery
# or
yarn add -D @types/jquery
npm install vue-slick-ts
# or
yarn add vue-slick-ts

Example Usage

<script setup lang="ts">
  import { ref, onMounted } from "vue";
  import { ListSlickMethods, VueSlickCarousel } from "vue-slick-ts";
  import type { SlickInstance } from "vue-slick-ts";
  import "vue-slick-ts/dist/css/slick.css";

  const carousel = ref<SlickInstance | null>(null);

  const handleInit = (e: JQuery.Event, instance: SlickInstance) => {
    console.log(e, instance);
  };

  onMounted(() => {
    carousel.value!(ListSlickMethods.SLICK_METHODS_PLAY);
  });
</script>

<template>
  <VueSlickCarousel ref="carousel" @init="handleInit" :autoplay-speed="4000">
    <div>Test 1</div>
    <div>Test 2</div>
  </VueSlickCarousel>
</template>

Related Packages

vue-slick-carousel

Vue Slick Carousel with True SSR Written for Faster Luxstay

1,013,545 826
v-slick-carousel

Vue Slick Carousel for Vue 3

75,367 25
vue3-slick-carousel

Vue Slick Carousel with True SSR Written for Faster Luxstay

10,581
slick-vuejs

Vue Slick Carousel with True SSR Written for Faster Luxstay

3,294 0
vue-slick-carousel-rtl

Vue Slick Carousel with True SSR Written for Faster Luxstay

2,385 0

Version History

Version Released License
1.1.0 MIT
1.0.0 MIT
0.8.4 MIT
0.8.3 MIT
0.8.2 MIT