New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

react-multicolor-loading-bar

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-multicolor-loading-bar

A multi-colored loading bar component for React.js

latest
npmnpm
Version
1.0.2
Version published
Maintainers
1
Created
Source

react-colored-loading-bar

Here is the Demo.

Installation

npm install --save react-multicolor-loading-bar

Example Usage

import React from 'react'
import Loadingbar from 'react-multicolor-loading-bar'

const App = () => {
  return (
    <div>
      <Loadingbar
        colors={[darkBlue, darkOrange, darkBlue, lightOrange]}
        height={5}
        cycleDurationInMs={200}
        positionAtTop={true}
      ></Loadingbar>
    </div>
  )
}

export default App

Props

Below are the props you can pass to the Component to customize its behaviour.

PropTypeDefaultdescription
colorsstring[]-Colors codes to fill the loading bar with
heightnumber-Height of the bar
cycleDurationInMsnumber-How soon you want to the bar to complete one cycle
positionAtTopboolean-Whether to stick the bar at the top of the page

License

ISC licensed

Keywords

react-loader

FAQs

Package last updated on 29 Apr 2020

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