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 🙏

© 2024 – Pkg Stats / Ryan Hefner

vue-abd-slider

v0.0.6

Published

The vue-abd-slider is a responsive reusable slider made with VueJs, the slider use the power of transition and vuejs slots.

Downloads

4

Readme

Vue Abd Slider

The vue-abd-slider is a responsive reusable slider made with VueJs, the slider use the power of transition and vuejs slots.

An example of using this slider is implemented in src/components/examples files, and hosted in jocular-lamington-350b7d.netlify.app

Usage

If you want to use this component in your project you can either copy the entire slider directory into your project.

Or Install it from npm using the following command:

npm install vue-abd-slider

The component have the following props:

|Props | description | required | type | default value | |--|--|--|--|--| | name | component name, also used as a key | true | string | | | dots | setting this prop to true will show the slider indicators, and hide them when assigned to false | false | boolean | false | | arrows | setting this prop to true will show the slider left and right controllers, and hide them when assigned to false | false | boolean | false | | interval | Configurable Auto Play Option to switch between slides based on a given time duration | false | number | 3000ms |

The two examples below shows how to use the slider component in both ways:

1- Local component

First you just need to import the slider component, and then define your steps inside of and it dont forget to give it a name, because name is a required prop.

<template>
 <slider-main :interval="2500" :name="'header-slider'" dots>
    <div>Slide 01</div>
    <div>Slide 02</div>
    <div>Slide 03</div>
    <div>Slide 04</div>
 </slider-main>
</template>
<script>
    import SliderMain from "../slider/SliderMain";

    export default {
        name: "ExampleComponent",
        components: { SliderMain },
    };
</script>

2- As a Package in npm

Install it from npm using the following command:

npm install vue-abd-slider

And then import the component from the packege and dont forget to import the css file too, because the css file is so importtant for the slider to run properly, and to be responsive.

<template>
 <slider-main :interval="2500" :name="'header-slider'" dots arrows>
    <div>Slide 01</div>
    <div>Slide 02</div>
    <div>Slide 03</div>
    <div>Slide 04</div>
 </slider-main>
</template>
<script>
    // the two lines below are so important  !!!!!!
    import SliderMain from "vue-abd-slider";
    import "vue-abd-slider/dist/vue-abd-slider.css"

    export default {
        name: "ExampleComponent",
        components: { SliderMain },
    };
</script>

screenshots

Some screenshots from an example of a simple home page that i have built using this component which is hosted in following url jocular-lamington-350b7d.netlify.app.

| enter image description here| enter image description here | enter image description here| |--|--|--| |enter image description here|enter image description here|enter image description here|

Developement Setup:

If you want to run this repository in your local machine and start contributing to this project the follwing settings are recommended. VSCode + Volar (and disable Vetur) + TypeScript Vue Plugin (Volar).

configuration

See Vite Configuration Reference.

Project Setup

npm install

Compile and Hot-Reload for Development

npm run dev

Type-Check, Compile and Minify for Production

npm run build

Run Unit Tests with Vitest

npm run test:unit

Lint with ESLint

npm run lint