Launch Week Day 2: Introducing Reports: An Extensible Reporting Framework for Socket Data.Learn More
Socket
Book a DemoSign in
Socket

@snapsheet/reprogressbars

Package Overview
Dependencies
Maintainers
68
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@snapsheet/reprogressbars

React progress bars

latest
Source
npmnpm
Version
2.0.1
Version published
Maintainers
68
Created
Source

Reprogressbars

npm version npm downloads MIT License Build Status minzipped size

Intro

Reprogressbars is a progress bar library built on React.

The main purpose of this library is to simplify displaying progress from ajax requests so that you can just specify when you are and are not loading, and Reprogressbars can animate automatically in between.

Examples

import { ProgressBar } from 'reprogressbars';

<ProgressBar isLoading={this.state.isLoading} />

For a progress bar fixed to the top of your page:

<ProgressBar isLoading={this.state.isLoading} className="fixed-progress-bar" />
.fixed-progress-bar {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
}

The isLoading prop makes for simple integration with Redux.

You can also change the height or color:

<ProgressBar isLoading={this.state.isLoading} height="4px" color="#B71C1C" />

API

See docs

Contribution

Please create an issue for issues or bugs. Pull requests welcome.

License

MIT

Copyright (c) 2017-2021 Nick Stanish

Keywords

react

FAQs

Package last updated on 27 Mar 2024

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