Vue Awesome Swiper is a Vue.js component wrapper for the Swiper carousel library. As of its latest stable version, 5.0.1, the project is officially deprecated. Version 5.x acts exclusively as a re-export of the official `swiper/vue` package, making its APIs entirely incompatible with previous `vue-awesome-swiper` versions (v4.x and below). All functionality and component structures now directly mirror the official Swiper Vue component. Developers are strongly advised to migrate to the official `swiper/vue` package for continued stability, features, and future updates. Prior versions (e.g., v4.1.1 for Swiper 5-6/Vue 2, v3.1.3 for Swiper 4.x/Vue 2) offered direct integration but are no longer maintained. The project effectively has no independent release cadence since its deprecation, simply following `swiper/vue`'s exports.
npm install vue-awesome-swiperVerified import paths — ran on the pinned version, not inferred.
This example demonstrates the basic setup of `vue-awesome-swiper` v5.x within a Vue 3 SFC, including module imports, event handling, and basic styling for a functional carousel.
Rewrite your Swiper component usage to align with the `swiper/vue` API documentation. This involves using `Swiper` and `SwiperSlide` components directly, importing modules and styles from the `swiper` package, and adopting the new prop and event structure.
Update your import paths to use `import { Swiper, SwiperSlide } from 'swiper/vue'` instead of `vue-awesome-swiper`. No other changes are typically needed for v5.x code as it already re-exports the official components.Ensure you explicitly import Swiper modules (e.g., `import { Pagination } from 'swiper'`) and all necessary CSS files (e.g., `import 'swiper/css'`, `import 'swiper/css/pagination'`) in your component or global entry point.For `vue-awesome-swiper` v5.x (and `swiper/vue`), Swiper modules are passed as props to the `<swiper>` component via the `modules` array (e.g., `:modules="[Pagination, Navigation]"`). Ensure modules are imported directly from `swiper` and passed correctly.
Verify that your project is running Vue 3.x, as `vue-awesome-swiper` v5.x (and `swiper/vue`) are Vue 3-only. If you need Vue 2 support, you must use `vue-awesome-swiper@4.1.1` or earlier.