react-progress-2
React progress 2
Last updated 8 years ago by rsqw .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install react-progress-2 
SYNC missed versions from official npm registry.

YouTube style progress bar for ReactJS

Demo

Support

Installation

NPM

npm install react-progress-2

JSPM

jspm install npm:react-progress-2

Usage

Include react-progress-2/main.css to your project. With SystemJS CSS plugin you simply need to write this line:

import "react-progress-2/main.css!"

Include react-progress-2 and put it somewhere in the top-component, for example:

import React from "react";
import Progress from "react-progress-2";

var Layout = React.createClass({
    render: function() {
        return (
            <div className="layout">
                <Progress.Component/>
                {/* other components go here*/}
            </div>
        );
    }
});

Now, whenever you need to show an indicator, just call Progress#show, for example:

loadFeed: function() {
    Progress.show();
    // do your ajax thing.
},

onLoadFeedCallback: function() {
    Progress.hide();
    // render feed.
}

Please note, that show and hide calls are stacked, so after n-consecutive show calls, you need to do n hide calls to hide an indicator or you can use Progress.hideAll().

Styling

Option #1

.loader-60devs .loader-60devs-progress {
    background: #ff6f00;
}

Option #2

  <Progress.Component
    style={{background: 'orange'}}
    thumbStyle={{background: 'green'}} />

Examples

Examples

Contribution

Do the following steps if you have the willing to fix a bug or just add some features to react-progress-2

cd dev
npm install
jspm install
gulp watch
# change the world!

Authors and Contributors

Created in 2015 by Ruslan Prytula (@milworm).

Current Tags

  • 4.4.3                                ...           latest (8 years ago)

23 Versions

  • 4.4.3                                ...           8 years ago
  • 4.4.2                                ...           9 years ago
  • 4.4.1                                ...           9 years ago
  • 4.4.0                                ...           9 years ago
  • 4.3.2                                ...           9 years ago
  • 4.3.1                                ...           9 years ago
  • 4.3.0                                ...           10 years ago
  • 4.2.3                                ...           10 years ago
  • 4.2.2                                ...           10 years ago
  • 4.2.1                                ...           10 years ago
  • 4.2.0                                ...           10 years ago
  • 4.1.1                                ...           10 years ago
  • 4.1.0                                ...           10 years ago
  • 4.0.0                                ...           10 years ago
  • 3.0.1                                ...           10 years ago
  • 3.0.0                                ...           10 years ago
  • 2.6.1                                ...           10 years ago
  • 2.6.0                                ...           10 years ago
  • 2.5.0                                ...           10 years ago
  • 2.4.0                                ...           10 years ago
  • 2.3.0                                ...           10 years ago
  • 2.2.0                                ...           10 years ago
  • 2.1.2                                ...           10 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 21
Last Day 0
Last Week 0
Last Month 2
Dependencies (0)
None
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |