1.0.0 • Published 6 years ago

react-image-loader2 v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

Build Status

About

This component is using great svg loader from http://samherbert.net/svg-loaders. It is showed until onload event is triggered on requested image.

Getting started

npm install react-image-loader --save

Usage

import React from 'react';
import ReactDOM from 'react-dom';
import ImageLoader from 'react-image-loader';

ReactDOM.render(
  <ImageLoader 
    src="https://images.unsplash.com/photo-1460626399219-57a00a2361cb?ixlib=rb-0.3.5&q=80&fm=jpg&crop=entropy&s=12c861af4f60a23c7f55a83f401f4b7"
    alt="Random image from Unsplash.com"
    />,
  document.getElementById('app')
);

Props

  • src: Source of an image to be loaded
  • alt: Alternative description

Demo

https://rprzebieglec.github.io/react-image-loader/#app

License

MIT

1.0.0

6 years ago

0.2.2

6 years ago

0.2.1

6 years ago

0.2.0

6 years ago

0.1.6

6 years ago

0.1.5

6 years ago

0.1.4

6 years ago

0.1.3

6 years ago