Native Vue.js Lightbox Component

Native Vue.js Lightbox Component

A simple native Vue.js lightbox & gallery component for showcasing your favorite photos.

Build Status


Simple native Vue.js lightbox



Vue Compatibility

Compatible with Vue 2.0


$ npm install vlightbox

Register the component

import lightbox from 'vlightbox';

Basic markup should look like this

<lightbox :images="images"></lightbox>

Image settings

Accepts array containing image objects, properties accepted are caption and src.

images: [
        src: '',
        caption: 'Image 1',
        src: '',

Other options are;

Remove all styles to the image gallery, overlay not included

  • Default: false

Add h1 with title above gallery

  • Default: null
title="Demo Gallery" 

Loop back to the first image when at the end of the gallery

  • Default: true

Show next, back and close buttons on overlay

  • Default: true

Show captions on images with the caption property

  • Default: true

More features coming soon!

Github Repository

Tags: #VueJs