# vue-photo-modal

> A really simple photo modal plugin using Tailwind and Vue.

Latest version **0.1.9** (published 2022-01-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install vue-photo-modal
pnpm add vue-photo-modal
yarn add vue-photo-modal
bun add vue-photo-modal
```

## 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.1.9 |
| Published | 2022-01-27 |
| First published | 2022-01-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 6.2 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Charlie Benjafield |
| Maintainers | cbenjafield |

## Links

- npm: https://www.npmjs.com/package/vue-photo-modal
- Repository: https://github.com/cbenjafield/vue-photo-modal
- Homepage: https://github.com/cbenjafield/vue-photo-modal#readme
- Issues: https://github.com/cbenjafield/vue-photo-modal/issues
- npm.io page: https://npm.io/package/vue-photo-modal

## Dependencies (2)

- [vue](https://npm.io/package/vue.md) ^2.5.17
- [tailwindcss](https://npm.io/package/tailwindcss.md) ^1.8.6

## Recent versions

- 0.1.9 (latest) — 2022-01-27
- 0.1.8 — 2022-01-27
- 0.1.7 — 2022-01-27
- 0.1.6 — 2022-01-27
- 0.1.5 — 2022-01-21
- 0.1.4 — 2022-01-20
- 0.1.3 — 2022-01-20
- 0.1.2 — 2022-01-20
- 0.1.1 — 2022-01-20
- 0.1.0 — 2022-01-20

## README

# Vue Photo Modal

A really simple modal plugin to show images larger when using Vue and Tailwind.

![Vue Photo Modal example](https://user-images.githubusercontent.com/4989492/150506726-b21d19c5-4861-4071-9153-5d2ae5d086ed.jpg)

## Installation

The plugin is available from NPM.

```
npm install --save vue-photo-modal
```

Then, tell Vue to use the plugin:

```
import VuePhotoModal from 'vue-photo-modal'

Vue.use(VuePhotoModal)
```

This will allow you to access the plugin within Vue like so:

```
this.$photoModal.add({
    src: 'src to image',
    alt: 'alt text to use for the image',
    width: 'explicitly set the width',
    height: 'explicitly set the height',
    class: 'class name for the image' 
})
```

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