# react-imgr

> react-imgr is an tag replacement for react

Latest version **1.1.5-alpha.0** (published 2025-01-05) · ISC license · 0 weekly downloads

## Install

```sh
npm install react-imgr
pnpm add react-imgr
yarn add react-imgr
bun add react-imgr
```

## Health

**Score 25/100 (F)** — status: maintenance-mode.

Positive: no vulnerabilities.

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

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.5-alpha.0 |
| Published | 2025-01-05 |
| First published | 2019-03-05 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 28.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5 |
| Author | anish.m.prasad |
| Maintainers | anishmprasad |
| Keywords | react-component, progressive-image, lazy-load, react, image-lazyload, image-component, image, img |

## Links

- npm: https://www.npmjs.com/package/react-imgr
- Repository: https://github.com/anishmprasad/react-imgr
- Homepage: https://github.com/anishmprasad/react-imgr#readme
- Issues: https://github.com/anishmprasad/react-imgr/issues
- npm.io page: https://npm.io/package/react-imgr

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.1.5-alpha.0 (latest) — 2025-01-05
- 1.1.4 — 2021-04-27
- 1.1.3 — 2020-05-25
- 1.1.2 — 2020-05-25
- 1.1.1 — 2019-04-10
- 1.1.0 — 2019-03-31
- 1.0.9 — 2019-03-30
- 1.0.8 — 2019-03-25
- 1.0.7 — 2019-03-24
- 1.0.5 — 2019-03-05
- 1.0.4 — 2019-03-05
- 1.0.3 — 2019-03-05
- 1.0.2 — 2019-03-05
- 1.0.1 — 2019-03-05
- 1.0.0 — 2019-03-05

## README

# react-imgr

A Progressive Image component for React.

### Installation

```

// with npm with react-extensions
$ npm install react-extensions

// with npm with react-compounds
$ npm install @react-compounds/image  --save

// with yarn with react-compounds
$ yarn add @react-compounds/image

// with npm
$ npm install react-imgr  --save

// with yarn
$ yarn add react-imgr
```

### Usage

This is the basic usage of react-dropdown

```Javascript
import Image from 'react-imgr';
import 'react-imgr/dist/styles.min.css'

<Image
    src='image.jpg'
    preloadSrc='preloadimage.jpg'
    containerStyle={{
	width: '100%',
	height: '280px'
    }}
    initialBlur
    alt='alt tag added here'
    scale
    placeholder='placeholder.jpg'
/>
```

### Props

| Name           | Type      | Required | Description                      |
| -------------- | --------- | -------- | -------------------------------- |
| src            | `string`  | `true`   | the src of image                 |
| preloadSrc     | `string`  | `false`  | the src image preload src        |
| containerStyle | `object`  | `false`  | container css styles             |
| initialBlur    | `boolean` | `true`   | the src initial state            |
| alt            | `string`  | `true`   | the src alt tag                  |
| scale          | `boolean` | `false`  | scale the src image              |
| placeholder    | `string`  | `true`   | the src of the placeholder image |

### Demo

[codesandbox.io](https://codesandbox.io/embed/xj5p7lzlnp)

[anishmprasad.com](https://anishmprasad.com/opensource/react-imgr)

[anishmprasad.github.io](https://anishmprasad.github.io/opensource/react-imgr)

### TODO

-   [x] Optimization
-   [x] CSS Polishing and Transitions
-   [x] Documentation
-   [x] Production Ready
-   [ ] Code Cleanup

### License

Apache 2.0

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