New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-pace-progress

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-pace-progress

react pace

  • 2.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

React Pace Progress

React Pace Progress is a simple pace-style progressbar component.

example

Install

The only way to use React-Pace-Progressbar is to install it from NPM.

$ npm install react-pace-progress --save

You need to import it and include in your own React build progress (using Webpack, e.g).

import Pace from 'react-pace-progress'

Usage

Use Pace like any other react component. Pace renders a thin horizontal progressbar infinitely approaching 100%. It never reaches 100%.

  // inside your react component
  
  load = ()=>{
    this.setState({isLoading: true});
    fetch().then(()=>{
      // deal with data fetched
      this.setState({isLoading: false})
    })
  };
  
  render(){
    return (
      <div>
        {this.state.isLoading ? <Pace color="#27ae60"/> : null}
        ... content
      </div>
    )
  }

Props

Use props to custom Pace component.

  • height: number, progressbar height in pixels.
  • color: string, progressbar color.

Keywords

FAQs

Package last updated on 11 Dec 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

  • 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