vue3-carousel is a modern, lightweight, and responsive carousel component designed specifically for Vue 3 applications. Its current stable version is 0.17.0, and it maintains an active release cadence, frequently adding new features, performance enhancements, and bug fixes, with minor versions released every few weeks. Key differentiators include built-in support for responsive breakpoints, infinite scroll with `wrapAround`, touch/mouse dragging, mouse wheel navigation, autoplay functionality, accessible keyboard navigation, and vertical sliding mode. It also provides dedicated components for navigation and pagination, and ships with TypeScript types for improved developer experience. The project is actively maintained with a focus on performance and accessibility.
npm install vue3-carouselVerified import paths — ran on the pinned version, not inferred.
Demonstrates basic usage of the Carousel component with slides, navigation, and pagination, including responsive and autoplay features.
Ensure your project uses Vue 3.5.0 or newer: `npm update vue` or `yarn upgrade vue`.
Add `import 'vue3-carousel/carousel.css'` to your main entry file (e.g., `main.js`/`main.ts`) or within the script setup block of components using the carousel.
Upgrade to `vue3-carousel` v0.17.0 or newer to benefit from fixes for mobile scrolling, auto mode, and `wrapAround` functionality: `npm update vue3-carousel`.
Review the official documentation for any breaking changes related to advanced usage or custom implementations that rely on internal component structure. Most basic usage remains unaffected.
Always test `itemsToShow` configurations across various screen sizes and define appropriate `breakpoints` if aiming for fractional slide visibility.
Upgrade to v0.10.0 or later to resolve known SSR hydration problems. For Nuxt users, consider using the `vue3-carousel-nuxt` module for better integration.
Ensure you have `import { Carousel } from 'vue3-carousel'` in your script block and that the component is used correctly in your template (e.g., `<Carousel>`).Verify `import 'vue3-carousel/carousel.css'` is present and correctly applied. If in an SSR environment, ensure you're using a compatible version and consider client-only rendering if issues persist, or use the Nuxt module.
Provide a valid positive number for `itemsToShow`, ensuring it's bound correctly if it comes from dynamic data.
Wrap your addon components within a `<template #addons>...</template>` block, as shown in the quickstart example, ensuring it's treated as a slot content function.