@chenfengyuan/vue-carousel
Carousel component for Vue 3.
49,039
185
| Install | |
|---|---|
npm install @chenfengyuan/vue-carousel |
|
| Latest Version: | 2.0.0 |
| Vue: | 3 |
| Older releases: | 2 |
| License: | MIT |
| Last Updated: | Feb 19, 2022 |
| Links: | GitHub · npm |
Maintainer: chenfengyuan
vue-carousel
Carousel component for Vue 3. For Vue 2, check out the
v1branch.
Main files
dist/
├── vue-carousel.js (UMD, default)
├── vue-carousel.min.js (UMD, compressed)
├── vue-carousel.esm.js (ECMAScript Module)
├── vue-carousel.esm.min.js (ECMAScript Module, compressed)
└── vue-carousel.d.ts (TypeScript Declaration File)
Getting started
Installation
Using npm:
npm install vue@3 @chenfengyuan/vue-carousel@2
Using pnpm:
pnpm add vue@3 @chenfengyuan/vue-carousel@2
Using Yarn:
yarn add vue@3 @chenfengyuan/vue-carousel@2
Using CDN:
<script src="https://unpkg.com/vue@3"></script><!-- Vue.js is required -->
<script src="https://unpkg.com/@chenfengyuan/vue-carousel@2"></script>
Usage
import { createApp } from 'vue';
import VueCarousel from '@chenfengyuan/vue-carousel';
const app = createApp({});
app.component(VueCarousel.name, VueCarousel);
<vue-carousel :data="['Slide 1', 'Slide 2', 'Slide 3']"></vue-carousel>
Browser support
Same as Vue 3.
Versioning
Maintained under the Semantic Versioning guidelines.
License
Related Packages
Version History
| Version | Released | License |
|---|---|---|
| 2.0.0 | MIT | |
| 1.0.6 | MIT | |
| 1.0.5 | MIT | |
| 1.0.4 | MIT | |
| 1.0.3 | MIT | |
| 1.0.2 | MIT | |
| 1.0.1 | MIT | |
| 1.0.0 | MIT | |
| 0.1.1 | MIT | |
| 0.1.0 | MIT |
Pre-releases (2)
| Version | Released | License |
|---|---|---|
| 2.0.0-beta | MIT | |
| 2.0.0-alpha | MIT |