An open API service indexing awesome lists of open source software.

https://github.com/nejcm/react-image

React image and background image component.
https://github.com/nejcm/react-image

background-image image img javascript library react responsive

Last synced: 6 months ago
JSON representation

React image and background image component.

Awesome Lists containing this project

README

          

# ๐Ÿ–ผ๏ธ React image

A simple react image and background image component with support for responsive images, fallback image, lazy loading and loader.


[![NPM][npm-badge]][npm-link]
[![JavaScript Style Guide][style-guide-badge]][style-guide]

[![Build Status][build-badge]][build]
[![Semantic release][semantic-release-badge]][semantic-release]
[![Code Coverage][coverage-badge]][coverage]
[![version][version-badge]][package] [![downloads][downloads-badge]][npmtrends]
[![MIT License][license-badge]][license]

[![Storybook][storybook-badge]]([storybook])

[![All Contributors](https://img.shields.io/badge/all_contributors-1-orange.svg)](#contributors)

[![PRs Welcome][prs-badge]][prs] [![Code of Conduct][coc-badge]][coc]

[![Watch on GitHub][github-watch-badge]][github-watch]
[![Star on GitHub][github-star-badge]][github-star]

## Table of Contents

- [Installation](#installation)
- [Usage](#usage)
- [Docs & Examples](#docs--examples)
- [Issues](#issues)
- [๐Ÿ› Bugs](#-bugs)
- [๐Ÿ’ก Feature Requests](#-feature-requests)
- [โ“ Questions](#-questions)
- [Authors](#authors)
- [Contributors](#contributors)
- [Support](#support)
- [LICENSE](#license)

## Installation

### Peer dependencies

react-image requires the following peer dependencies to work. Make sure to have
them installed in your project.

> You can **skip this step** if those packages are already installed in your
> project.

```shell
# with styled-components
$ npm install react react-dom styled-components --save
# with emotion
$ npm install react react-dom @emotion/styled @emotion/core --save
```

### Package

```shell
# with styled-components
$ npm install @nejcm/react-image --save
# with emotion
$ npm install @nejcm/react-image-emotion --save
```

## Usage

```jsx
// with styled-components
import {Image, BackgroundImage} from '@nejcm/react-image';
// with emotion
import {Image, BackgroundImage} from '@nejcm/react-image-emotion';
```

For more examples check the docs.

## Docs & Examples

> [**Docs & Examples**][docs-link]

## Issues

_Looking to contribute? Look for the [Good First Issue][good-first-issue]
label._

### ๐Ÿ› Bugs

Please file an issue for bugs, missing documentation, or unexpected behavior.

[**See Bugs**][bugs]

### ๐Ÿ’ก Feature Requests

Please file an issue to suggest new features. Vote on feature requests by adding
a ๐Ÿ‘. This helps maintainers prioritize what to work on.

[**See Feature Requests**][requests]

### โ“ Questions

For questions related to using the library, please visit a support community
instead of filing an issue on GitHub.

## Authors

- Nejc Murลกiฤ ( [GitHub][github], [LinkedIn][linkedin] )

## Contributors


Nejc
Nejc Murลกiฤ

๐Ÿ’ป ๐Ÿ“– ๐Ÿš‡ โš ๏ธ

This project follows the [all-contributors][all-contributors] specification.
Contributions of any kind welcome!

## Support

Reach out to us at one of the following places:

- [๐ŸŒ Website][website]
- [๐Ÿ“ง Email][email]

## LICENSE

[MIT](LICENSE)

[all-contributors]: https://github.com/all-contributors/all-contributors
[bugs]: https://github.com/nejcm/react-image/issues?q=is%3Aissue+is%3Aopen+label%3Abug+sort%3Acreated-desc
[build-badge]: https://img.shields.io/travis/com/nejcm/react-image.svg
[build]: https://travis-ci.com/nejcm/react-image
[coc-badge]: https://img.shields.io/badge/code%20of-conduct-ff69b4.svg
[coc]: https://github.com/nejcm/react-image/blob/master/CODE_OF_CONDUCT.md
[coverage-badge]: https://img.shields.io/codecov/c/github/nejcm/react-image.svg
[coverage]: https://codecov.io/github/nejcm/react-image
[docs-link]: https://nejcm.github.io/react-image/
[downloads-badge]: https://img.shields.io/npm/dm/@nejcm/react-image.svg
[email]: nmursi2@gmail.com
[emojis]: https://github.com/all-contributors/all-contributors#emoji-key
[github]: https://github.com/nejcm
[github-star-badge]: https://img.shields.io/github/stars/nejcm/react-image.svg?style=social
[github-star]: https://github.com/nejcm/react-image/stargazers
[github-watch-badge]: https://img.shields.io/github/watchers/nejcm/react-image.svg?style=social
[github-watch]: https://github.com/nejcm/react-image/watchers
[good-first-issue]: https://github.com/nejcm/react-image/issues?utf8=โœ“&q=is%3Aissue+is%3Aopen+sort%3Areactions-%2B1-desc+label%3A"good+first+issue"+
[license-badge]: https://img.shields.io/npm/l/@nejcm/react-image.svg
[license]: https://github.com/nejcm/react-image/blob/master/LICENSE
[linkedin]: https://www.linkedin.com/in/nejcm/
[node]: https://nodejs.org
[npm]: https://www.npmjs.com/
[npm-badge]: https://img.shields.io/npm/v/@nejcm/react-image.svg
[npm-link]: https://www.npmjs.com/package/@nejcm/react-image
[npmtrends]: http://www.npmtrends.com/@nejcm/react-image
[package]: https://www.npmjs.com/package/@nejcm/react-image
[prs-badge]: https://img.shields.io/badge/PRs-welcome-brightgreen.svg
[prs]: http://makeapullrequest.com
[requests]: https://github.com/nejcm/react-image/issues?q=is%3Aissue+sort%3Areactions-%2B1-desc+label%3Aenhancement+is%3Aopen
[semantic-release-badge]: https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg
[semantic-release]: https://github.com/semantic-release/semantic-release
[storybook-badge]: https://nejcmursic.netlify.com/assets/storybook.svg
[storybook]: https://storybook.js.org/
[style-guide-badge]: https://img.shields.io/badge/code_style-standard-brightgreen.svg
[style-guide]: https://standardjs.com
[version-badge]: https://img.shields.io/npm/v/@nejcm/react-image.svg
[website]: https://nejcmursic.com/