# vue-lazy-img

> A component for image lazy loading implements by vuejs

Latest version **1.0.0** (published 2016-10-21) · ISC license · 0 weekly downloads

## Install

```sh
npm install vue-lazy-img
pnpm add vue-lazy-img
yarn add vue-lazy-img
bun add vue-lazy-img
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2016-10-21 |
| First published | 2016-09-27 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | lakb248@gmail.com |
| Maintainers | lakb248 |
| Keywords | vue-component, vuejs |

## Links

- npm: https://www.npmjs.com/package/vue-lazy-img
- Repository: https://github.com/lakb248/vue-lazy-img
- Homepage: https://github.com/lakb248/vue-lazy-img#readme
- Issues: https://github.com/lakb248/vue-lazy-img/issues
- npm.io page: https://npm.io/package/vue-lazy-img

## Dependencies (1)

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

## Recent versions

- 1.0.0 (latest) — 2016-10-21
- 0.1.0 (next) — 2016-10-21
- 0.0.1 — 2016-09-27

## README

# vue-lazy-img
[![Build Status](https://travis-ci.org/lakb248/vue-lazy-img.svg?branch=master)](https://travis-ci.org/lakb248/vue-lazy-img)

> A component for image lazy loading implement by vuejs

## Demo
[Demo](https://lakb248.github.io/vue-lazy-img/)

## Usage

### Install

```bash
npm install vue-lazy-img --save
```
And, if you are using vue 2.0

```bash
npm install vue-lazy-img@next --save
```

### CommonJS

```javascript
var VueLazyImg = require('vue-ip-input');

new Vue({
    components: {
        'vue-lazy-img': VueLazyImg
    },
    template: '<vue-lazy-img source="..." placeholder="..."></vue-lazy-img>'
});
```

### ES6

```javascript
import VueLazyImg from 'vue-lazy-img';

new Vue({
    components: {
        'vue-lazy-img': VueLazyImg
    },
    template: '<vue-lazy-img source="..." placeholder="..."></vue-lazy-img>'
});
```

### Props
| Property | Description |
|:--|:--|
| source | the source of the image |
| placeholder | the placeholder of the image which will be loaded before the source |

## License

[MIT](http://opensource.org/licenses/MIT)

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