# mue-gallery

> A Vue.js project

Latest version **0.2.0** (published 2018-07-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install mue-gallery
pnpm add mue-gallery
yarn add mue-gallery
bun add mue-gallery
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.0 |
| Published | 2018-07-20 |
| First published | 2018-05-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 6.0.0 |
| Dependencies | 1 |
| Unpacked size | 5.7 MB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | murrito |
| Maintainers | murrito |

## Links

- npm: https://www.npmjs.com/package/mue-gallery
- npm.io page: https://npm.io/package/mue-gallery

## Dependencies (1)

- [vue](https://npm.io/package/vue.md) ^2.5.2

## Recent versions

- 0.2.0 (latest) — 2018-07-20
- 0.1.7 — 2018-06-13
- 0.1.6 — 2018-06-13
- 0.1.5 — 2018-06-09
- 0.1.4 — 2018-05-29
- 0.1.3 — 2018-05-29
- 0.1.2 — 2018-05-29

## README

# mue-gallery

A Vue.js images gallery.

[Demo](https://murrito.github.io/mue-gallery/)

## Installation

```bash
# npm
npm install mue-gallery
```
```bash
# yarn
yarn add mue-gallery
```

## Usage

```js
import Vue from 'vue';
import MueGallery from 'mue-gallery';
 
Vue.use(MueGallery);
```

In your component:

```html
<mue-gallery
  :images="images"
/>
```

## Options

| Property | Default | Type | Description |
| --- | --- | --- | --- |
| `v-model` | `false` | `Boolean` | Controls if gallery pop-up is open or not |
| [`images`](#images) | `[]` | `Array` | Your images list |
| `index` | `undefined` | `Number` | Current displayed image |
| `embed` | `false` | `Boolean` | Set `true` to embed gallery into your page. If `true`, `v-model` is not needed |
| `thumbs` | `true` | `Boolean` | Set `true` to show thumbnails |
| `thumbs-position` | `'bottom'` | `String` | Thumbnails position. Possible values: `top`, `right`, `bottom`, `left` |
| `background` | `'#333'` | `String` | The background color. Any value, supported by CSS `background-color` |
| `blur` | `false` | `Boolean` | Set `true` to add a half-transparent blurred version of current image to the background |
| `nav` | `true` | `Boolean` | Set `true` to show navigation arrows |
| `caption` | `true` | `Boolean` | Set `true` to show current image title |
| `counter` | `true` | `Boolean` | Set `true` to show images counter |
| `zoom` | `false` | `Boolean` | Set `true` to allow images zoom |

### <a name="images"></a>images

Possible data formats:
```js
[
  'image_1.jpg',
  ...
]
```
```js
[
  {
    src: 'image_1.jpg',         // Full-size image path, required
    thumb: 'image_1_thumb.jpg', // Thumbnail path, optional
    title: 'Image 1',           // Image title, optional
  },
  ...
]
```

## License
mue-gallery is MIT licensed.

---
_Source: https://npm.io/package/mue-gallery · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
