Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-loader-display

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-loader-display

A simple customizable ReactJS component that allows a developer to display a loading modal.

  • 3.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

react-loader-display

A simple customizable ReactJS component that allows a developer to display a loading modal.

Usage:

Install with npm:

npm install --save react-loader-display

Use in your code:

Version 2.x:

var Loader=require('react-loader-display');

Version 3.x:

var Loader=require('react-loader-display').loader;

In your ReactJS application you can insert it as follows (not all the props are required):

<Loader 
  IsLoading={true} 
  LoadingImage="example_image.gif" 
  ZIndex={100} 
  LoaderMessage="Loading..." 
  BackDropRGBA="rgba(0,0,0,0.2)"
  ForeGroundColor="white" 
  TextColor="black"
  DisplayType="FadeIn"
  />

Required props:

  • IsLoading - true (display modal) or false (hide modal).
  • LoadingImage - the url of the image you would like to display as the loading gif, svg etc.

Optional props:

  • ZIndex - the css z-index of the backdrop and modal. Defaults to 1000.
  • LoaderMessage - the text to display. Defaults to "Please wait...".
  • BackDropRGBA - The rgba colour of the modal parent ie. the background. Defaults to "rgba(0,0,0,0.1)".
  • ForeGroundColor - The background colour of the modal. Defaults to "white".
  • TextColor - The colour of the text string displayed to the user. Defaults to "black".
  • DisplayType- Options are "Show","FadeIn" and "SlideDown". Defaults to "Show"

Keywords

FAQs

Package last updated on 09 Jun 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc