
Security News
Django Joins curl in Pushing Back on AI Slop Security Reports
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.
vue-simple-carousel
Advanced tools
Simple carousel slider for Vue.js 3
npm install vue-simple-carousel
or
yarn add vue-simple-carousel
<template>
<simple-carousel :items="photos">
<template #default="{ item, index }">
<img :src="item" :alt="index">
</template>
</simple-carousel>
</template>
<script>
import SimpleCarousel from 'vue-simple-carousel';
import { defineComponent } from 'vue';
export default defineComponent({
components: {
SimpleCarousel,
},
setup() {
return {
photos: [
'https://via.placeholder.com/150/0000FF/808080?Text=Test%20Image%201',
'https://via.placeholder.com/150/FF0000/FFFFFF?Text=Test%20Image%202',
'https://via.placeholder.com/150/FFFF00/000000?Text=Test%20Image%203',
'https://via.placeholder.com/150/000000/FFFFFF/?text=Test%20Image%204',
]
}
}
});
</script>
Attribute | Type | Default | Description |
---|---|---|---|
items | Array | List of slides (required) | |
modelValue | Number | 0 | Current slide index |
perPage | Number / [Number, Number][] | * | |
1* | Number of slides per page. :per-page="3" or :per-page=[[640, 2], [720, 3]] for several endpoints | ||
slideByItem | Boolean | false | Slide by one item if true , or by full page if false |
loop | Boolean | false | Flag to make the carousel loop around when it reaches the end. |
adjustable | Boolean | false | Adjust the height of the wrapper to the height of the visible slides |
sideNav | Boolean | false | Show side navigation buttons |
pages | Boolean | false | Show pages navigation |
dots | Boolean | false | Show dots navigation |
Event name | Description | Parameter |
---|---|---|
update:modelValue | Emitted when current index changed | Current index Number |
change-per-page | Emitted when current per page number changed | Current per page number Number |
FAQs
Simple carousel slider for Vue.js 3
The npm package vue-simple-carousel receives a total of 12 weekly downloads. As such, vue-simple-carousel popularity was classified as not popular.
We found that vue-simple-carousel demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.
Security News
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
Security News
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.