Installations
npm install vue-awesome-swiper
Developer Guide
Typescript
Yes
Module System
ESM, UMD
Node Version
16.14.1
NPM Version
8.5.0
Score
76.8
Supply Chain
97.3
Quality
76.1
Maintenance
100
Vulnerability
100
License
Releases
Contributors
Unable to fetch Contributors
Languages
JavaScript (59.82%)
Shell (40.18%)
Developer
Download Statistics
Total Downloads
24,464,326
Last Day
7,881
Last Week
41,204
Last Month
205,406
Last Year
3,628,258
GitHub Statistics
12,839 Stars
299 Commits
1,962 Forks
212 Watching
6 Branches
19 Contributors
Bundle Size
451.00 B
Minified
282.00 B
Minified + Gzipped
Package Meta Information
Latest Version
5.0.1
Package Id
vue-awesome-swiper@5.0.1
Unpacked Size
7.78 kB
Size
3.16 kB
File Count
5
NPM Version
8.5.0
Node Version
16.14.1
Total Downloads
Cumulative downloads
Total Downloads
24,464,326
Last day
-34.5%
7,881
Compared to previous day
Last week
-31.5%
41,204
Compared to previous week
Last month
-15.2%
205,406
Compared to previous month
Last year
-19.1%
3,628,258
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dev Dependencies
3
vue-awesome-swiper
Swiper component for Vue.
⚠️ DEPRECATED
The vue-awesome-swiper project will be deprecated in favor of Swiper Vue component, a TypeScript friendly project which is a recent official release provided by Swiper. For better stability, please migrate as soon as possible.
vue-awesome-swiper released its last version v5.0.0 for (bridge) transition. It's worth noting that APIs in this version are completely NOT compatible with that of previous version, it only re-exports swiper/vue
, which means only functions of that component are available. For example, the following code is fully equivalent in vue-awesome-swiper@5.0.0
. And if you want to check update catelog of Swiper API, please refer to Swiper Changelog.
1import { Swiper, SwiperSlide, /* rest swiper/vue API... */ } from 'vue-awesome-swiper' 2// exactly equivalent to 3import { Swiper, SwiperSlide, /* rest swiper/vue API... */ } from 'swiper/vue'
If you need to use older versions of vue-awesome-swiper, you can find the corresponding version number below. Feel free to fork our code and maintain your own copy.
Previous versions
- Swiper 5-6 vue-awesome-swiper@4.1.1 (vue2)
- Swiper 4.x vue-awesome-swiper@3.1.3 (vue2)
- Swiper 3.x vue-awesome-swiper@2.6.7 (vue2)
Documentation
How to use
Install
1npm install swiper vue-awesome-swiper --save
1yarn add swiper vue-awesome-swiper
local component
1<template> 2 <swiper :modules="modules" :pagination="{ clickable: true }"> 3 <swiper-slide>Slide 1</swiper-slide> 4 <swiper-slide>Slide 2</swiper-slide> 5 <swiper-slide>Slide 3</swiper-slide> 6 </swiper> 7</template> 8 9<script> 10 import SwiperClass, { Pagination } from 'Swiper' 11 import { Swiper, SwiperSlide } from 'vue-awesome-swiper' 12 13 // import swiper module styles 14 import 'swiper/css' 15 import 'swiper/css/pagination' 16 // more module style... 17 18 export default { 19 components: { 20 Swiper, 21 SwiperSlide 22 }, 23 setup() { 24 return { 25 modules: [Pagination] 26 } 27 } 28 } 29</script>
global component
1import { createApp } from 'vue' 2import SwiperClass, { /* swiper modules... */ } from 'Swiper' 3import VueAwesomeSwiper from 'vue-awesome-swiper' 4 5// import swiper module styles 6import 'swiper/css' 7// more module style... 8 9// use swiper modules 10SwiperClass.use([/* swiper modules... */]) 11 12const app = createApp() 13app.use(VueAwesomeSwiper)
Component API
1<!-- All options and events of the original Swiper are supported --> 2<swiper 3 :modules="..." 4 :allow-touch-move="false" 5 :slides-per-view="1" 6 :autoplay="{ delay: 3500, disableOnInteraction: false }" 7 @swiper="..." 8 @slide-change="..." 9 @transition-start="..." 10 ... 11> 12 <template #container-start><span>Container start</span></template> 13 <template #wrapper-start><span>Wrapper start</span></template> 14 <swiper-slide>Slide 1<swiper-slide> 15 <swiper-slide v-slot="{ isActive }">Slide 2 {{ isActive }}<swiper-slide> 16 <swiper-slide>Slide 3<swiper-slide> 17 <template #wrapper-end><span>Wrapper end</span></template> 18 <template #container-end><span>Container end</span></template> 19</swiper>
Changelog
Detailed changes for each release are documented in the release notes.
License
![Empty State](/_next/static/media/empty.e5fae2e5.png)
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: MIT License: LICENSE:0
Reason
2 existing vulnerabilities detected
Details
- Warn: Project is vulnerable to: GHSA-mwcw-c2x4-8c55
- Warn: Project is vulnerable to: GHSA-7fh5-64p2-3v2j
Reason
Found 1/30 approved changesets -- score normalized to 0
Reason
project is archived
Details
- Warn: Repository is archived.
Reason
detected GitHub workflow tokens with excessive permissions
Details
- Warn: no topLevel permission defined: .github/workflows/publish.yml:1
- Warn: no topLevel permission defined: .github/workflows/release.yml:1
- Info: no jobLevel write permissions found
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/surmon-china/vue-awesome-swiper/publish.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/surmon-china/vue-awesome-swiper/publish.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/surmon-china/vue-awesome-swiper/release.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/surmon-china/vue-awesome-swiper/release.yml/main?enable=pin
- Info: 0 out of 4 GitHub-owned GitHubAction dependencies pinned
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'main'
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 3 are checked with a SAST tool
Score
3.2
/10
Last Scanned on 2025-01-27
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn MoreOther packages similar to vue-awesome-swiper
vue-awesome-swiper-rjs1
Swiper component for Vue
anx-vue-swiper
Swiper component for Vue
@brunobesson/vue-awesome-swiper
Swiper component for Vue
vue-awesome-swiper-fork
[![](https://badge.juejin.im/entry/57f6a5e7d2030900689c1e9c/likes.svg?style=flat-square)](https://juejin.im/entry/57f6a5e7d2030900689c1e9c/detail) [![GitHub issues](https://img.shields.io/github/issues/surmon-china/vue-awesome-swiper.svg?style=flat-squar