1.1.17 • Published 2 years ago

@alfaandfriends/image-light-box v1.1.17

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

vue3-image-box

SampleGif

A simple image lightbox component for vue3.0!!

I use CSS style from vue-image-lightbox

DEMO

Online Demo

SampleCode

import

import ImageBox from "vue3-image-box";

component

<image-box
  image-list-class="yourclass"
  :images="images"
></image-box>

sample data

setup() {
    const images=[
        {
            thumb: "http://example.com/thumb.jpeg",
            src: "http://example.com/image.jpeg",
            caption: "my image1!",
        },
        {
            thumb: "http://example.com/thumb2.jpeg",
            src: "http://example.com/image3.jpeg",
            caption: "my image2!",
        },
        ...
    ];

    return {
        images
    }
}