Skip to content
项目

关于

轻量且高度可定制的 Vue 3 轮播组件,适用于你的下一个项目。

网站与应用开发

这些数字如何统计

可以做什么

  • 📱 Responsive - Breakpoints support
  • 🔄 Infinite Scroll - Wrap around sliding
  • 🖱️ Mouse/Touch - Dragging support
  • 🖲️ Mouse Wheel - Scroll navigation support

实测星标增长

24小时
0
7天
+1
15天
0
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

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.

🤖 For AI agents

The documentation is also published as Markdown: llms.txt indexes every page (each also served at its .md URL), and llms-full.txt holds all of it in one file.

🌟 Star History

探索相关项目

加载中…