vue images
A simple, responsive Lightbox component for Vue.js to display an array of images.
Examples
Photos courtesy of Unsplash.
Support your keyboard to navigate left right esc. Support mouse scroll to navigate. Support mouse touch move to navigate.
Also, try resizing your browser window.
Getting Started
1. Import using module:
// Install using npm npm install vue-images --save // In ES6 module import vueImages from 'vue-images'
new Vue({ el: '#demo', data () { return { images: [...], ...(other parameters) } }, components: { vueImages: vueImages } })
2. Import using script tag:
<script src="../node-modules/vue-images/dist/vue-images.js"></script>
new Vue({ el: '#demo', data () { return { images: [...], ...(other parameters) } }, components: { vueImages: vueImages.default } })
License
vue images is free to use for personal and commercial projects under the MIT license.
Attribution is not required, but greatly appreciated. It does not have to be user-facing and can remain within the code.
Help
Have a question?
Follow the quick start guide on GitHub to get up and running quickly. Please do not use Github Issues to report personal support requests.
Found a bug?
If you find a bug, please read the Change Log before you report the issue.