1.0.60 • Published 2 months ago

progress_bar_for_react v1.0.60

Weekly downloads
1
License
MIT
Repository
github
Last release
2 months ago

progress_bar_for_react

Made with Vite

NPM JavaScript Style Guide TypeScript

Install

npm install --save progress_bar_for_react

This is a simple fully customizable react progress bar component

Image description

Author

Myron Apostolakis

Installation

  • npm install --save progress_bar_for_react

Import

Since the latest version (1.0.43) the import directive has changed from

import ProgressBar from "progress_bar_for_react";

to

import { ProgressBarContainer as ProgressBar } from 'progress_bar_for_react';

Please feel free to update your code accordingly.

Usage

<ProgressBar percentage={50} />

The option percentage is mandatory in order for the ProgressBar to display. When the percentage is equal to 100% the ProgressBar will hide itself.

List of supported Options

OptionDescription
tooltip='Demo text'If this option is set then the 'Demo text' appears as a tooltip on mouse hovering
fillerExtraStyles={{...}}Filler extra styles will override the default styling. Usage: backgroundColor: blue or hex code
progressBarExtraStyles={{...}}Progress Bar extra styles will override the default styling. Usage: position,height,width,borderRadius, border

Please see the src/Examples folder for more descriptive usage.

API calls

onPercentageChange

It will be triggered when a new percentage is received. Please see examples

Fork instructions

You can fork this repository for your own modifications following the bellow steps

Please follow the instructions from https://help.github.com/en/github/getting-started-with-github/fork-a-repo

Development - Storybook

Use command npm run storybook and visit http://localhost:6006. You can view the storybook online here

Testing

This component is tested using Cypress and Vite Server

You can use the following commands

  • npm test to run vite dev server and cypress in browser mode.
  • npm run test:headless to run vite dev server and cypress in headless mode.

License

This repo is licensed under GNU General Public License v3.0

Tutorial

A short tutorial can be found in the following link https://codebitshub.com/progress_bar_for_react

Changelog

  • v1.0.60 --> Added Typescript support, build with Vite
  • v1.0.55 --> Tested with React 18
  • v1.0.52 --> Replaced react-jss with emotion
  • v1.0.51 --> Tested with node version > 16.13.1
  • v1.0.45 --> Removed third party dependency of react-tooltip package
1.0.60

2 months ago

1.0.59

2 months ago

1.0.58

2 months ago

1.0.22

2 years ago

1.0.21

2 years ago

1.0.26

2 years ago

1.0.25

2 years ago

1.0.24

2 years ago

1.0.23

2 years ago

1.0.29

2 years ago

1.0.28

2 years ago

1.0.27

2 years ago

1.0.33

2 years ago

1.0.31

2 years ago

1.0.30

2 years ago

1.0.37

2 years ago

1.0.36

2 years ago

1.0.35

2 years ago

1.0.34

2 years ago

1.0.39

2 years ago

1.0.40

2 years ago

1.0.44

2 years ago

1.0.43

2 years ago

1.0.42

2 years ago

1.0.41

2 years ago

1.0.48

2 years ago

1.0.47

2 years ago

1.0.46

2 years ago

1.0.45

2 years ago

1.0.49

2 years ago

1.0.51

2 years ago

1.0.50

2 years ago

1.0.55

2 years ago

1.0.54

2 years ago

1.0.53

2 years ago

1.0.52

2 years ago

1.0.57

2 years ago

1.0.56

2 years ago

1.0.19

2 years ago

1.0.18

2 years ago

1.0.17

2 years ago

1.0.16

2 years ago

1.0.20

2 years ago

1.0.15

4 years ago

1.0.11

4 years ago

1.0.14

4 years ago

1.0.13

4 years ago

1.0.12

4 years ago

1.0.10

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago