@chenfengyuan/vue-carousel

Carousel component for Vue.js.

Usage no npm install needed!

<script type="module">
  import chenfengyuanVueCarousel from 'https://cdn.skypack.dev/@chenfengyuan/vue-carousel';
</script>

README

vue-carousel

Build Status Coverage Status Downloads Version Gzip Size

Carousel component for Vue 3.

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)

Getting started

Installation

npm install vue@next @vue/compiler-sfc @chenfengyuan/vue-carousel@next

In browser:

<script src="/path/to/vue.js"></script><!-- Vue.js is required -->
<script src="/path/to/vue-carousel.js"></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

MIT © Chen Fengyuan