vue-image-slider
Vue.js simple image slider component
Installation
Yarn
yarn add @gaiaz/vue-image-slider
npm
npm install @gaiaz/vue-image-slider --save
Usage
See also examples
<template>
<div>
<image-slider v-model="slides">
Sample Text
</image-slider>
</div>
</template>
<script>
import ImageSlider from '@gaiaz/vue-image-slider'
import '@gaiaz/vue-image-slider/dist/image-slider.css'
export default {
data () {
return {
slides: [
'https://dummyimage.com/300&text=1',
'https://dummyimage.com/300&text=2'
]
}
},
components: {
ImageSlider
}
}
</script>
Project setup
yarn install
Compiles and hot-reloads for development
yarn run serve
Compiles and minifies for production
yarn run build
Lints and fixes files
yarn run lint
Run unit tests
yarn run test:unit