vue3-image-box
vue3-image-box

A simple image lightbox component for vue3.0!!
I use CSS style from vue-image-lightbox
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
}
}
Related Packages
vue-picture-input
Mobile-friendly picture file input component with image preview and drag and dro...
131,226
883
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 1.1.0 | ^3.0.0 | MIT | |
| 1.0.0 | ^3.0.0 | MIT |