JSPM

custom-image-loader-react

1.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q11986F
  • License ISC

Package Exports

  • custom-image-loader-react

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (custom-image-loader-react) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

React Custom Image Loader:

This package provides a simple react component, which enables the user to have a custom image loader.

Demo

Demo Page

Installation

npm install custom-image-loader

Usage

<CustomImageLoader
    image={'https://image.flaticon.com/icons/png/512/1499/1499840.png'}
    isLoaded={true}
    circle={false}
    speed={2}
    animationType={'evaporate'}
/>

Options

image (*): Should specify the URL or the path from the local system.

animationType (*): Should specify the animation type.

isLoaded: It takes a Boolean, by default it is true. By this we can toggle the loader.

circle: It takes a Boolean, by default it is false. true specifies the loader in a circle.

speed: It takes an Integer, by default it is 2.