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 🙏

© 2026 – Pkg Stats / Ryan Hefner

vue-banner-better

v1.3.0

Published

better banner component for vue.js, easy to use

Readme

vue-banner-better

better banner(swiper,carousel) component for vue.js, easy to use.

Features

  • Easy

    Few API, make it easy for developers to quickly develop a swiper component.

  • Swift

    Just configure it on demand to get the swiper effect you want.

Install

npm install vue-banner-better -S

Usage

There are two ways to use this component.

  1. register globally First register Banner and Slide component in main.js file:
import Vue from "vue";
import App from "./App";
// import swiper plugin
import Banner from "vue-banner-better";
// use plugin,it will mount Banner and slide components globally
Vue.use(Banner);

new Vue({
  el: "#root",
  render: h => h(App)
});

Then you can use them in your any .vue file:

NOTE : The direct child element of the Banner component can only be the Slide component, otherwise it will cause an error!

  1. register in scoped
< Banner
  autoplay
  :indicator="indicator"
  show-navigation
  disable-on-hover
  mode="loop"
>
  <Slide>
    <img src="https://images.pexels.com/photos/289323/pexels-photo-289323.jpeg?auto=compress&cs=tinysrgb&dpr=1&w=500"/>
  </Slide>
  <Slide>
    <img src="https://images.pexels.com/photos/70741/cereals-field-ripe-poppy-70741.jpeg?auto=compress&cs=tinysrgb&dpr=1&w=500"/>
  </Slide>
  <Slide>
    <img src="https://images.pexels.com/photos/54323/rose-composites-flowers-spring-54323.jpeg?auto=compress&cs=tinysrgb&dpr=1&w=500"/>
  </Slide>
</Banner>
import {Banner,Slide} from "vue-banner-better";
export default {
  data() {
    return {
       indicator: {
            clickable: true,
            type: "pill",
            showCounter: false
        }
    };
  },
  components: {
    Banner,
    Slide
  }

Of course you can also directly use the default component configuration:

<Banner indicator>
	<Slide>something</Slide>
	<Slide>something</Slide>
	<Slide>something</Slide>
</Banner>

finally open your browser ,an amazing swiper view is shown!

Api

Banner

Properties

| Name | Type | Default | Description | | :--------------: | :----------------: | :------- | :--------------------------------------------------------- | | width | string | 800px | wrapper width | | height | string | 400px | wrapper height | | bordered | Boolean | false | if true,the Banner component have 1px outline | | interval | Number | "3000" | Set the rotation interval of swiper in milliseconds | | autoplay | Boolean | true | Set whether swiper automatically rotates | | mode | String | 'loop' | Set the carousel mode, loopor alternate | | indicator | ObjectorBoolean | false | See the indicator description below | | show-navigation | Boolean | true | Whether to display navigation | | disable-on-hover | Boolean | true | Whether to disable the swiper when setting the mouse hover |

indicator

  • indicator.align:Set the horizontal position of the indicator, 'start','center'(default) or 'end'.
  • indicator.type:Set indicator style,'circle','square','bar'(default) or 'pill'.
  • indicator.clickable:Indicates whether the indicator can be clicked to switch the carousel,defaults to be true.
  • indicator.color:Set indicator default color.
  • indicator.activeColor:Set the color when the indicator is activated.
  • indicator.textColor:Set the text color of the counter in the indicator, available when showCounter is true.
  • indicator.activeTextColor:Set the text color when the counter in the indicator is activated, available when showCounter is true.
  • indicator.showCounter:Set whether to include a counter in the indicator,default value is false.

MoreDetail

If you want to learn more about vue-banner-better, you can visit our hosting project to github

You can also git clone and execute the following command:

npm run start

to run the project, and welcome to mention issure!