Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/superthinking/milestone-progress-bar

Just a progress bar with milestones
https://github.com/superthinking/milestone-progress-bar

milestone milestone-progress-bar npm npm-package react-js react-native

Last synced: 29 days ago
JSON representation

Just a progress bar with milestones

Awesome Lists containing this project

README

        

# Milestone Progress Bar

![](images/ProgressBarExample.gif)

Check out this package at [NPM](https://www.npmjs.com/package/milestone-progress-bar)

How to install:

npm install milestone-progress-bar

How to import:

import {MilestoneProgressBar} from 'milestone-progress-bar';

An example of usage:

Requires 2 props:
1) `totalMilestones` : `number` : Total number of milestones to complete the progress
2) `progress` : `list of objects` (object must have `completed` and `total`) : `completed` must match `total` for a milestone to be marked complete. Do not increment value of `completed` of an object before marking the previous object fully complete.