akapralov 45f8e7a363 lab | 1 hónapja | |
---|---|---|
.. | ||
dist | 1 hónapja | |
tests | 1 hónapja | |
CHANGELOG.md | 1 hónapja | |
LICENSE | 1 hónapja | |
README.md | 1 hónapja | |
package.json | 1 hónapja | |
rollup.config.js | 1 hónapja | |
tsconfig.json | 1 hónapja | |
vitest.config.ts | 1 hónapja | |
vitest.setup.ts | 1 hónapja | |
yarn-error.log | 1 hónapja |
Modern lightweight Vue 3 carousel component
https://vue3-carousel.ismail9k.com/
If you're using Nuxt and prefer to use it via module, please refer to vue3-carousel-nuxt
First step is to install it using yarn
or npm
:
npm install vue3-carousel
# or use yarn
yarn add vue3-carousel
<script setup>
// If you are using PurgeCSS, make sure to whitelist the carousel CSS classes
import 'vue3-carousel/dist/carousel.css'
import { Carousel, Slide, Pagination, Navigation } from 'vue3-carousel'
const config = {
itemsToShow: 1.5
}
</script>
<template>
<Carousel v-bind="config">
<Slide v-for="slide in 10" :key="slide">
{{ slide }}
</Slide>
<template #addons>
<Navigation />
<Pagination />
</template>
</Carousel>
</template>