1.1.0 • Published 6 years ago

react-progressable v1.1.0

Weekly downloads
6
License
ISC
Repository
github
Last release
6 years ago

React-Progressable

A classic progressbar component for react. Lot to come yet...

Install

npm install --save react-progressable

Usage

import React, {Component} from 'react';
import {ProgressBarClassic, ProgressCircleClassic} from "react-progressable";

class ProgressBarComponent extends Component {
    render(){
         <div>
            <ProgressBarClassic fill={80} />
            <ProgressCircleClassic fill={80} />
         </div>   
    }
}

export default ProgressBarComponent;

Progress-Bar Classic

Progress-Bar Classic

Available Props:

Prop NameProp TypeDefault ValueDescription
backgroundString#eeeeeeBackground color for un-filled area
fillNumber0Progress percentage. Max: 100
fillColorString#ff9a00Background color for filled area
fillTextStringNULLProgress-bar text to be appear in filled area
fillTextStyleObject{}React style object for fillText
heightNumber25Height of the progress-bar in px.
borderRadiusNumber0Border radius in px.
animateBooleantrueProgress-bar animation toggle
animateDurationNumber1Progress-bar animation duration in seconds
stripesBooleanfalseStripe effect on progress-bar
stripesAnimateBooleanfalseAnimate stripe effect
stripesAnimateDirectionStringleftAnimated stripe effect direction. 'right' or 'left'

Progress-Circle Classic

Progress-Circle Classic

Available Props:

Prop NameProp TypeDefault ValueDescription
backgroundString#eeeeeeBackground color for un-filled area
fillNumber0Progress percentage. Max: 100
fillColorString#ff9a00Background color for filled area
fillTextStringNULLProgress-circle text to be appear in center
fillTextStyleObject{}React style object for fillText
sizeNumber150Height and Width of the progress-circle.
ringWidthNumber7Width of the progress-circle filled area