@shapla/react-progress

1.0.0 • Public • Published

Shapla Progress Bar

A custom progress bar featuring support for stacked bars, animated backgrounds, and text labels.

Table of contents

Installation

npm install --save @shapla/react-progress

Usage

Styles

with Sass:

import '@shapla/react-progress/src/index.scss';

with CSS:

import '@shapla/react-progress/dist/progress.css';

Javascript Instantiation

import React from 'react';
import Progress from '@shapla/react-progress';

class MyApp extends React.Component {
  render() {
    return (
      <Progress max={10} value={4} theme='primary' size='small' striped={true} animated={true}/>
    );
  }
}

Props

Property Type Required Default Description
value Number no `` Current progress value
max Number no 1 Max progress value
label String no `` Label text
striped Boolean no false Set true to display stripped design
animated Boolean no false Set true to display stripped animation
size String no default Progress bar height. Value can be tiny, small, medium, large
theme String no default Progress bar color theme. Value can be primary, secondary

Package Sidebar

Install

npm i @shapla/react-progress

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

361 kB

Total Files

10

Last publish

Collaborators

  • sayful