An open API service indexing awesome lists of open source software.

https://github.com/tpkn/vue-lightbox

Vue component that wraps any content into a lightbox popup
https://github.com/tpkn/vue-lightbox

Last synced: 3 months ago
JSON representation

Vue component that wraps any content into a lightbox popup

Awesome Lists containing this project

README

        

# Vue Lightbox

Vue component that wraps any content into a lightbox popup

## Props

### show
**Type**: _Boolean_
**Default**: `false`

### bgcolor
**Type**: _String_
**Default**: `rgba(0,0,0,.9)`

Darkening background color

### noscroll
**Type**: _String_ | _Boolean_
**Default**: `true`

Blocks vertical scrolling for the `body` tag

### zIndex
**Type**: _Number_
**Default**: `99999`

Lightbox element `z-index`

### theme
**Type**: _String_

Addition class for the lightbox instance

## Custom Events

### close

The event is triggered when the 'close' button is pressed

## Usage

```javascript
import Lightbox from './components/vue-lightbox.vue'
Vue.component('VueLightbox', Lightbox);
```

```html


  • 001

  • 002

  • 003

  • 004

  • 005

```

Custom close button:

```css
.custom {
.close_button {
background-image: url('my_custom_close.svg');
}
}
```

You should set `.custom` class through `theme` attribute first.