0.3.0 • Published 2 years ago

the-zlider v0.3.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Install

npm i the-zlider

Inside nuxt.config.ts add

  modules: ["the-zlider"]

Use:

TheZliderItems makes use of scoped slots

  const zliderProps = {
    mounted: true, // optional
    perView: 2,
    gap: 32,
    startAt: 0, // optional
    breakpoints: {
      456: {
        perView: 4,
        gap: 24,
      },
      950: {
        perView: 4,
        gap: 24,
      },
    },
  };

  <TheZlider v-bind="zliderProps" :key="i">
    <TheZliderItems :items="[1,2,3]" v-slot="slideData">
      <p>My Slider number  {{ slideData.slide }} </p>
    </TheZliderItems>
    <TheZliderArrows />
    <TheZliderPagination />
  </TheZlider>
0.3.0

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago