# vue-image-loading2

> Vue Package To Add Loading PlaceHolder For Your Image With Error Image

Latest version **1.0.0** (published 2021-09-28) · ISC license · 0 weekly downloads

## Install

```sh
npm install vue-image-loading2
pnpm add vue-image-loading2
yarn add vue-image-loading2
bun add vue-image-loading2
```

## 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 | 2021-09-28 |
| First published | 2021-09-28 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 90.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | EhabAbdelMawla |
| Maintainers | ehababdelmawla |
| Keywords | image, image-loading, Loader, vue |

## Links

- npm: https://www.npmjs.com/package/vue-image-loading2
- Repository: https://github.com/ehabAbdelMawla/vue-image-loading
- Homepage: https://github.com/ehabAbdelMawla/vue-image-loading#readme
- Issues: https://github.com/ehabAbdelMawla/vue-image-loading/issues
- npm.io page: https://npm.io/package/vue-image-loading2

## Alternatives

- [exif-parser](https://npm.io/package/exif-parser.md) — 3.8M weekly downloads
- [vite-plugin-compression](https://npm.io/package/vite-plugin-compression.md) — 569.5K weekly downloads
- [pica](https://npm.io/package/pica.md) — 442.4K weekly downloads
- [@reportportal/client-javascript](https://npm.io/package/@reportportal/client-javascript.md) — 408.8K weekly downloads
- [@tldraw/state](https://npm.io/package/@tldraw/state.md) — 316.0K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2021-09-28

## README

# vue-image-loading

simple Vue Component To Display Loader untill Image Loaded Scuccessfully,
And Show Error Image When Target Image Cause Error

# Screenshots

![ezgif com-gif-maker](https://user-images.githubusercontent.com/51888513/132089942-f2138b6b-dc06-43a4-b053-1e70b94ca977.gif)

# Installation

<h3>npm</h3>

```
npm install vue-image-loading --save
```

# Example Usage

```
<template>
  <ImageLoader
    errorImageSrc="https://example.com/image_1"
    imageSrc="https://example.com/image_2"
    alt="Alternate Text"
  >
    <!-- Add Your Cusom Loader Here -->
    <Loader />

  </ImageLoader>
</template>
<script>
import ImageLoader from "vue-image-loading";
import Loader from "@/components/Loader";
export default {
  name: "App",
  components: { ImageLoader, Loader },
};
</script>


```

# Props

| Prop Name     | Description                                                   | Type   |
| ------------- | ------------------------------------------------------------- | ------ |
| imageSrc      | `scr` Attribute For Image To Load                             | string |
| errorImageSrc | `scr` Attribute For Image To Load When Main Image Cause Error | string |
| alt           | `alt` Attribute For Image                                     | string |

# Customize Style

```
.image-container{  /* Root Element */  }

.image-container img{  /* Your Image Element */  }

.image-container .image-container-overlay{ /* Loader Overlay Element */   }

```

Report an issue if you find there's something wrong

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