Fullscreen Lightbox Javascript Fullscreen Lightbox ,React Fullscreen Lightbox Vue

Vue Lightbox Documentation

Official Vue fslightbox guide!


To display images, HTML videos, YouTube videos you need to use sources array prop. Just pass urls or paths of your sources.


Custom sources

With sources prop you can also display content such as Vimeo videos, Google maps, whatever you want. Custom source needs to be Vue component:

<button @click="toggler = !toggler">
Toggle Lightbox


import FsLightbox from "fslightbox-vue";
import CustomSource from "./CustomSource.vue"

export default {
components: { FsLightbox },
data() {
return {
toggler: false,
CustomSource: CustomSource

Example custom source (Vimeo video):

<iframe src="https://player.vimeo.com/video/22439234" width="1920px" height="1080px"
frameBorder="0" allow="autoplay; fullscreen" allowFullScreen />

How to pass props to custom sources?

Get connected wth us on social networks!