vue3-carousel
A simple carousel component for Vue 3
npm downloads npm version npm license
vue3-carouselPackages similaires:
Tendance de téléchargements npm
3 Ans
🌟 Affichez le graphique d'utilisation en temps réel sur le README.md de vue3-carousel, il suffit de copier le code ci-dessous.
## Usage Trend
[![Usage Trend of vue3-carousel](https://npm-compare.com/img/npm-trend/THREE_YEARS/vue3-carousel.png)](https://npm-compare.com/vue3-carousel#timeRange=THREE_YEARS)
Cumulative GitHub Star Trend
🌟 Affichez le graphique de tendance des GitHub Stars sur le README.md de vue3-carousel, il suffit de copier le code ci-dessous.
## GitHub Stars Trend
[![GitHub Stars Trend of vue3-carousel](https://npm-compare.com/img/github-trend/vue3-carousel.png)](https://npm-compare.com/vue3-carousel)
Détail des statistiques
Package
Téléchargements
Stars
Taille
Issues
Publication
Licence
vue3-carousel93,478855731 kB25il y a 4 moisMIT
README pour vue3-carousel

Vue 3 Carousel Logo

Vue 3 Carousel

Modern lightweight Vue 3 carousel component

npm npm Package Quality

✨ Features

  • 📱 Responsive - Breakpoints support
  • 🔄 Infinite Scroll - Wrap around sliding
  • 🖱️ Mouse/Touch - Dragging support
  • 🖲️ Mouse Wheel - Scroll navigation support
  • Auto Play - Automatic sliding
  • 🎯 Slide Classes - Active & visible states
  • 🌐 RTL - Right-to-left support
  • A11y - Keyboard navigation & ARIA labels
  • 📊 Vertical - Vertical sliding mode

🚀 Installation

# npm
npm i vue3-carousel

# yarn
yarn add vue3-carousel

# pnpm
pnpm install vue3-carousel

📖 Basic Usage

<script setup>
// If you are using PurgeCSS, make sure to whitelist the carousel CSS classes
import 'vue3-carousel/carousel.css'
import { Carousel, Slide, Pagination, Navigation } from 'vue3-carousel'

const carouselConfig = {
  itemsToShow: 2.5,
  wrapAround: true
}
</script>

<template>
  <Carousel v-bind="carouselConfig">
    <Slide v-for="slide in 10" :key="slide">
      <div class="carousel__item">{{ slide }}</div>
    </Slide>

    <template #addons>
      <Navigation />
      <Pagination />
    </template>
  </Carousel>
</template>

📚 Documentation

Visit our documentation website for detailed usage and examples:

💚 Nuxt Module

For Nuxt users, check out vue3-carousel-nuxt module.