# @fenderdigital/react-image

> Fender React UI Kit Image Component

Latest version **1.0.2** (published 2019-10-24) · UNLICENSED license · 0 weekly downloads

## Install

```sh
npm install @fenderdigital/react-image
pnpm add @fenderdigital/react-image
yarn add @fenderdigital/react-image
bun add @fenderdigital/react-image
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2019-10-24 |
| First published | 2019-04-18 |
| Weekly downloads | 0 |
| License | UNLICENSED |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 2 |
| Unpacked size | 31.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Fender Digital |
| Maintainers | derduher, grs83, jcuanan, jemnon, philipyun, theloopla |
| Keywords | react, css, library, components, interface, functional, OOCSS, declarative, ui, user, ux |

## Links

- npm: https://www.npmjs.com/package/@fenderdigital/react-image
- npm.io page: https://npm.io/package/@fenderdigital/react-image

## Dependencies (2)

- [@fenderdigital/dom](https://npm.io/package/@fenderdigital/dom.md) ^1.0.6
- [@fenderdigital/react-intersection-observer](https://npm.io/package/@fenderdigital/react-intersection-observer.md) ^0.2.0

## Alternatives

- [style-dictionary](https://npm.io/package/style-dictionary.md) — 2.0M weekly downloads
- [postcss-merge-idents](https://npm.io/package/postcss-merge-idents.md) — 1.7M weekly downloads
- [@fontsource/noto-sans](https://npm.io/package/@fontsource/noto-sans.md) — 93.0K weekly downloads
- [uglifycss](https://npm.io/package/uglifycss.md) — 71.6K weekly downloads
- [mat4-interpolate](https://npm.io/package/mat4-interpolate.md) — 23.3K weekly downloads

## Recent versions

- 1.0.2 (latest) — 2019-10-24
- 1.0.1 — 2019-08-14
- 1.0.0 — 2019-08-14
- 0.1.0-beta.11 — 2019-07-16
- 0.1.0-beta.10 — 2019-07-16
- 0.1.0-beta.9 — 2019-05-14
- 0.1.0-beta.8 — 2019-05-14
- 0.1.0-beta.7 — 2019-05-14
- 0.1.0-beta.6 — 2019-05-14
- 0.1.0-beta.5 — 2019-05-01
- 0.1.0-beta.4 — 2019-04-30
- 0.1.0-beta.3 — 2019-04-29
- 0.1.0-beta.2 — 2019-04-26
- 0.1.0-beta.1 — 2019-04-18
- 0.1.0-beta.0 — 2019-04-18

## README

# Image for Fender React UI Kit

### Description
Progressive image loader

### Installation and Usage
```
yarn add @fenderdigital/react-image --save
```

```js
import Image from '@fenderdigital/react-image';
```

### Props
* `alt` - Descriptive string of the image contents for accessibility
* `bgColor` - Tachyon class (without `bg-` prefix) for image container background color
* `images` - Array of image URLs
* `intersectionOptions` - Object containing propters for the intersection observer 
* `onLoaded` - Callback to run after the higher fidelity image has loaded
* `ratio` - Aspect ratio of the image
* `tiny` - URL of a small version of the image
* `transition` - CSS animation transition type

| propName            | propType   | defaultValue                                      | isRequired |
| ------------------- | ---------- | ------------------------------------------------- | ---------- |
| alt                 | string     | ''                                                | false      |
| bgColor             | string     | 'near-white'                                      | false      |
| images              | array      | []                                                | false      |
| intersectionOptions | object     | { root: null, rootMargin: '0px', threshold: 0.5 } | false      |
| onLoaded            | function   | () => {}                                          | false      |
| ratio               | number     | 9 / 16                                            | false      |
| tiny                | string     | null                                              | false      |
| transition          | string     | null                                              | false      |


### Development

Check the [Monorepo README](https://github.com/fenderdigital/react-ui-kit) for development documentation.

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