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

@search4asraful/vue-carousel

v0.0.2

Published

A Customizable Vue3 carousel component.

Downloads

1

Readme

vue-carousel

This template should help get you started developing with Vue3 in Vite or laravel or any supported platform for vue.

Project Setup

npm install @search4asraful/vue-carousel

Init where component will be used

import VueCarousel from '@search4asraful/vue-carousel';

Compile and Hot-Reload for Development

npm run dev

Compile and Minify for Production

npm run build

Demo image | used as Carousel

Carousel

Demo image | used as feedback section

Feedback

Configuration

Tweek them according your need. | Property | Type | Default | Description | |:----------------------------|:--------|:--------|:--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | autoplay | Boolean | false | make true or just autoplay to start autoplay of slides. | | autoplaydelay | Number | 2500 | Time elapsed before advancing slide in autoplay. | dragging | Boolean | true | Enabled left & right dragging. | navigation | Boolean | true | Enabled next & previous clicks to slide. | indicators | Boolean | true | Enabled indicators in bottom also cistening clicks to select slide.

Example:

autoplay :autoplaydelay="5000" :dragging="false" :navigation="false" :indicators="false"

In this demo, I'm using the Tailwind CSS framework. You can use your preferred framework like Bootstrap or raw CSS. Regardless of your choice, it won't affect the components.


Example: how to use in script setup :slidesData="dyamicData" data pass is mendatory

    <template>
        <VueCarousel :slidesData="sliders" autoplay autoplaydelay="6000">
            <template #slide="{ slide }">
            <div class="px-14 flex justify-center flex-col items-center pb-10">
                <p class="leading-relaxed text-lg text-blue-400">
                {{ slide.text }}
                </p>
                <h2
                class="text-gray-900 dark:text-white font-medium title-font tracking-wider text-sm"
                >
                {{ slide.author }}
                </h2>
                <!-- :slidesData="dyamicData" pass is mandatory -->
            </div>
            </template>
        </VueCarousel>
    </template>

    <script setup>
        import VueCarousel from "@search4asraful/vue-carousel";

        const sliders = [
        {
            key: 1,
            text: "Item 1",
            author: "HOLDEN CAULFIELD",
        },
        {
            key: 2,
            text: "Item 2",
            author: "JANE DOE",
        },
        {
            key: 3,
            text: "Item 3",
            author: "JOHN SMITH",
        },
    ];
    </script>

    <style scoped>
    /* Add your preferd styles here */
    </style>
    

Example: how to use in export default script :slidesData="dyamicData" data pass is mendatory

    <template>
        <VueCarousel :slidesData="sliders" autoplay autoplaydelay="6000">
            <template #slide="{ slide }">
            <div class="px-14 flex justify-center flex-col items-center pb-10">
                <p class="leading-relaxed text-lg text-blue-400">
                {{ slide.text }}
                </p>
                <h2
                class="text-gray-900 dark:text-white font-medium title-font tracking-wider text-sm"
                >
                {{ slide.author }}
                </h2>
                <!-- :slidesData="dyamicData" pass is mandatory -->
            </div>
            </template>
        </VueCarousel>
    </template>

    <script>
    import VueCarousel from "@search4asraful/vue-carousel";

    export default {
        components: {
            VueCarousel,
        },
        data() {
            return {
            sliders: [
                {
                key: 1,
                text: "Item 1",
                author: "HOLDEN CAULFIELD",
                },
                {
                key: 2,
                text: "Item 2",
                author: "JANE DOE",
                },
                {
                key: 3,
                text: "Item 3",
                author: "JOHN SMITH",
                },
            ],
            };
        },
    };
    </script>

    <style scoped>
    /* Add your preferd styles here */
    </style>