Socket
Book a DemoInstallSign in
Socket

react-spinners-loading

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-spinners-loading

A totally customizable component for loading spinners/animation for your react project, it can serve as document loader (full screen), specific block loading animation and more, it has presets and accept your own assets as spinners

1.0.0
latest
Source
npmnpm
Version published
Weekly downloads
24
200%
Maintainers
1
Weekly downloads
 
Created
Source

React Loading Spinners Version

A Highly Customizable React component to help you with loaders/spinners for specific part of your project or as a project loading, with built-in presets and the ability of using your own assets.

Online Demo

Screenshots

You can check out this little demo to get the feel of it: Online demo

Get started

It's very easy to use the tool, follow the instructions

Add the package

Install the package using npm

npm i react-spinners-loading 

Import the package into your react app

import Loader from 'react-spinners-loading'

Pass the configuration props:

Example of the Configuraiton array:

  <Loader
    text="Loader Text"
    animation="clock"
    width="250px"
    height="250px"
    color="#FFF"
    background="rgba(234, 12, 35, 0.7)"
  />

And that's pretty much it!

Explanation of the different properties you can pass:

NameTypeDefaultDescription
textString'Loading...'Unique string that defines the element
animationStringnullOne of the built-in presets [bar, circle, clock, dots, double-circle, drop, spinner]
colorString'#FFFFFF'The color of the text/spinner in HEX,RGB or RGBa
backgroundString'rgba(0, 0, 0, 0.7)'The background color of the whole Loader in HEX,RGB or RGBa
widthString'100%'The Width of the Loader in Px/rem/em/%
heightString'100%'The Height of the Loader in Px/rem/em/%
fullscreenBooleanfalseIf the Loader should be showed in full-screen (Width & Height shouldn't be specified)
showBooleantrueTo control if the Loader has to be shown or not
imageUrlStringnullThe URL for the Loading animation (animation doesn't need to be specified)
dismissibleBooleanfalseShowing a Closing button to close the Loader

Enjoy :)

Keywords

react

FAQs

Package last updated on 19 Nov 2018

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.