Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/codeeshop-oc/vue-lightbox-advanced
Vue Lightbox Advanced Photo Grid component for Vue.js
https://github.com/codeeshop-oc/vue-lightbox-advanced
component npm-package vue vue-component vue-components vue-lightbox vue-lightbox-advanced vue2 vue3 vuejs vuejs2 vuejs3
Last synced: about 9 hours ago
JSON representation
Vue Lightbox Advanced Photo Grid component for Vue.js
- Host: GitHub
- URL: https://github.com/codeeshop-oc/vue-lightbox-advanced
- Owner: codeeshop-oc
- License: mit
- Created: 2021-07-17T11:12:10.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-11-13T10:44:31.000Z (about 1 year ago)
- Last Synced: 2024-10-13T17:39:17.431Z (about 1 month ago)
- Topics: component, npm-package, vue, vue-component, vue-components, vue-lightbox, vue-lightbox-advanced, vue2, vue3, vuejs, vuejs2, vuejs3
- Language: Vue
- Homepage: https://codeeshop-oc.github.io/vue-lightbox-advanced/
- Size: 1.07 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Vue Lightbox Advanced
> Vue Lightbox Advanced Photo Grid component for Vue.js
[![Latest Stable Version](https://img.shields.io/npm/v/vue-lightbox-advanced.svg)](https://www.npmjs.com/package/vue-lightbox-advanced) [![Total Downloads](https://img.shields.io/npm/dt/vue-lightbox-advanced.svg)](https://npm-stat.com/charts.html?package=vue-lightbox-advanced)
[![license](https://img.shields.io/badge/license-MIT-green)](https://github.com/codeeshop-oc/vue-lightbox-advanced/blob/main/LICENSE)
[![PRs welcome](https://img.shields.io/badge/PRs-welcome-ff69b4.svg)](https://github.com/codeeshop-oc/vue-lightbox-advanced/issues?&q=is%3Aissue+is%3Aopen)
![Downloads Monthly](https://img.shields.io/npm/dm/vue-lightbox-advanced.svg)Vue Lightbox Advanced provides flexibility of displaying first x (1-5) images of your gallery in a grid view as you seen on Facebook timeline. Click on the thumbnail will return an event with the index or file url (src) as per passed props that can be used to show the image or can be used to redirect to that specific file url (src).
It provides the shuffling images according to given options in docs.> Note: It requires parent height and width as the component will adapt to its resolutions
## Version Support
Vue 3 - Current Branch ( TypeScript + Vite + vitest )
[Vue 2](https://github.com/codeeshop-oc/vue-lightbox-advanced/tree/vue2)
## 🎨 Features
Find out all available features on [settings props](/docs/api/props.md) and see how that works on [examples](/docs/examples.md).
## 🚚 Installation
### yarn/npm
```bash
# npm
npm i vue-lightbox-advanced
# yarn
yarn add vue-lightbox-advanced
```### cdn
```bash
# latest
https://unpkg.com/vue-lightbox-advanced
```
## 🚀 Quick Start
```html
import VueLightboxAdvanced from 'vue-lightbox-advanced'
import 'vue-lightbox-advanced/dist/vue-lightbox-advanced.css'export default {
name: 'MyComponent',
components: { VueLightboxAdvanced },
data() {
return {
images: [
'https://cdn.pixabay.com/photo/2015/09/17/14/24/woman-944261_960_720.jpg',
'https://cdn.pixabay.com/photo/2015/10/30/20/13/boat-1014711_960_720.jpg',
'https://cdn.pixabay.com/photo/2017/10/17/16/10/fantasy-2861107_960_720.jpg',
'https://cdn.pixabay.com/photo/2016/05/11/16/32/bridge-1385938_960_720.jpg',
'https://cdn.pixabay.com/photo/2018/09/19/23/03/sunset-3689760_960_720.jpg',
'https://cdn.pixabay.com/photo/2020/09/15/09/10/church-5573087_960_720.jpg',
'https://cdn.pixabay.com/photo/2017/05/04/12/43/zebra-2283914_960_720.jpg',
'https://cdn.pixabay.com/photo/2018/01/25/14/12/nature-3106213_960_720.jpg',
'https://cdn.pixabay.com/photo/2017/12/10/15/16/white-horse-3010129_960_720.jpg',
'https://cdn.pixabay.com/photo/2017/06/07/10/47/elephant-2380009_960_720.jpg',
'https://cdn.pixabay.com/photo/2017/05/09/03/46/alberta-2297204_960_720.jpg',
'https://cdn.pixabay.com/photo/2017/01/18/17/14/girl-1990347_960_720.jpg'
]
}
}
}```
## 🔖 License
This software is licensed under the [MIT](https://github.com/codeeshop-oc/vue-lightbox-advanced/blob/main/LICENSE).
### Reference
[Morioh-Lab/v-lightbox](https://github.com/Morioh-Lab/v-lightbox)