# 2r-image

> 2R library image component implemented in React

Latest version **1.0.3** (published 2015-09-01) · WTFPL-2.0 license · 0 weekly downloads

## Install

```sh
npm install 2r-image
pnpm add 2r-image
yarn add 2r-image
bun add 2r-image
```

## 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.3 |
| Published | 2015-09-01 |
| First published | 2015-08-22 |
| Weekly downloads | 0 |
| License | WTFPL-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | Vlad "Reign" Zelinschi |
| Maintainers | thereignn |
| Keywords | react, image, react-image, react-image-component |

## Links

- npm: https://www.npmjs.com/package/2r-image
- Repository: https://github.com/vladzelinschi/2r-image
- Issues: https://github.com/vladzelinschi/2r-image/issues
- npm.io page: https://npm.io/package/2r-image

## Dependencies (1)

- [react](https://npm.io/package/react.md) ^0.13.3

## 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.0.3 (latest) — 2015-09-01
- 1.0.2 — 2015-08-22
- 1.0.1 — 2015-08-22
- 1.0.0 — 2015-08-22

## README

# 2r-image

2R library image component implemented in React.


## Instalation

`2r-image` is available as an npm package. Simply run `npm install 2r-image` command.

To use it in your project:

    import image from '2r-image'; // ES6 syntax
    var image = require('2r-image'); // ES5 syntax


## Usage & API

The following props can be passed to the component:

- `src` (String, required): the url of the image

- `width` (Number): width of the image (defaults to `'auto'`)

- `height` (Number): height of the image (defaults to `'auto'`)

- `alt` (String): the value of the `alt` attribute (defaults to `''`)

- `classes` (String): a string of multiple classes, separated by space (defaults to `''`)


## Examples

There is an examples folder inside the project with a minimum config. Steps to run:

- Clone the project and

- Run `npm install`

- Run `gulp examples`

- Navigate to `http://localhost:5000`


## License

This software is released under the terms of [WTFPL v2.0 license](http://www.wtfpl.net/).

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