npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

vue-swiper-carousel

v0.0.4

Published

Vue carousel based on swiperjs

Downloads

8

Readme

popsicle-swiper

##Demo

See vue-swiper

Project setup

First setup your vue-cli application. Then you enter the following commands in terminal

yarn install

OR

npm install

Compiles and hot-reloads for development

yarn serve

Compiles and minifies for production

yarn build

Lints and fixes files

yarn lint

Customize configuration

See Configuration Reference.

How to use

To begin using the plugin, you must first add it to vue instance

Globally

import Vue from 'vue'
import Swiper from '@popsicle/vue-swiper'

Vue.use(Swiper)

On a component

<script>
import {Swiper, SwiperSlide} from '@popsicle/vue-swiper'

export default({
    component: {
        'swiper': 'Swiper',
        'swiper-slide': 'SwiperSlide'
    }, 
    ...
})
</script>

Then you can include it in your vue template as follows:

<swiper></swiper>

Output:

<!-- Slider main container -->
<div class="swiper-container">
    <!-- Additional required wrapper -->
    <div class="swiper-wrapper" style="height: auto">
        <!-- Slides -->
        <div class="swiper-slide">Slide 1</div>
        <div class="swiper-slide">Slide 2</div>
        <div class="swiper-slide">Slide 3</div>
        ...
    </div>
   
    <!-- If we need navigation buttons -->
    <div class="swiper-button-prev"></div>
    <div class="swiper-button-next"></div>

</div>

Props:

|Props | Description| Type | Default | Required | |---------------|----------- |:-------------:|-----------|-----------| |loop |Set to true to enable continuous loop mode|Boolean | true | false | |slidesPerView |Number of slides per view (slides visible at the same time on slider's container).| auto or Number | 1 | false | |spaceBetween |Distance between slides in px. | Number | 0 | false | |watchOverflow |When enabled Swiper will be disabled and hide navigation buttons on case there are not enough slides for sliding| Boolean | true | false | |freeMode |slidesPerView: 'auto' is currently not compatible with multirow mode, when slidesPerColumn > 1 | Boolean | false | false | |centeredSlides | If true, then active slide will be centered, not always on the left side. | Boolean | true | false | |autoplay | Object with autoplay parameters or boolean true to enable with default settings. For example: {delay: 5000, ...}| Boolean or Object | true | false | |autoHeight | Set to true and slider wrapper will adopt its height to the height of the currently active slide| Boolean | false | false | |navigation | Show or hide navigation| Boolean | true | false | |breakpoints | Allows to set different parameter for different responsive breakpoints (screen sizes). Not all parameters can be changed in breakpoints, only those which are not required different layout and logic, like slidesPerView, slidesPerGroup, spaceBetween, slidesPerColumn.| Object | {...} | false | |speed | Duration of transition between slides (in ms)| Number | 300 | false | |initialSlide | Index number of initial slide.| Number | 0 | false | |direction | Could be 'horizontal' or 'vertical' (for vertical slider).| String | horizontal | false |

If you use "margin" css property to the elements which go into Swiper in which you pass "spaceBetween" into, navigation might not work property.

If you use it with "auto" value and along with loop: true then you need to specify loopedSlides parameter with amount of slides to loop (duplicate)

slidesPerView: 'auto' is currently not compatible with multirow mode, when slidesPerColumn > 1