1.0.5 • Published 3 months ago

vue-tailwind-lightbox v1.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
3 months ago

ezgif-2-e81342282f

📺 Demo

https://vue-tailwind-lightbox-demo.vercel.app/

🚀 Installation

  1. Install using your package manager of choice:
npm i vue-tailwind-lightbox
  1. Add the source files of Nuxt Tailwind Lightbox to the tailwind.config.js template path:
module.exports = {
  content: [
    // other files...
    './node_modules/vue-tailwind-lightbox/**/*.{js,ts,vue}',
  ],
}

⚙️ Usage

Import the component locally or define it globally:

<template>
  <vue-tailwind-lightbox :image-list="imageList" />
</template>

<script setup lang="ts">
import { ref } from 'vue'
import { VueTailwindLightbox } from 'vue-tailwind-lightbox'
import "vue-tailwind-lightbox/dist/style.css"; // Import CSS needed!

import image1 from '@/assets/images/image-product-1.jpg'
import image2 from '@/assets/images/image-product-2.jpg'
import image3 from '@/assets/images/image-product-3.jpg'
import image4 from '@/assets/images/image-product-4.jpg'

const imageList = ref([image1, image2, image3, image4])
</script>

Note: don't worry about the thumbnails images, they are automatically compressed to improve and maintain performance! 😉

📃 Props

NameTypeDefaultDescription
image-listArray---Array of images to fill the gallery
1.0.5

3 months ago

1.0.4

4 months ago

1.0.3

5 months ago

1.0.2

5 months ago

1.0.1

5 months ago

1.0.0

5 months ago

0.0.1

5 months ago

0.0.0

5 months ago