# react-percent-bar

> react progress bar component

Latest version **0.0.2** (published 2019-11-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-percent-bar
pnpm add react-percent-bar
yarn add react-percent-bar
bun add react-percent-bar
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2019-11-02 |
| First published | 2019-11-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 108.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Grant Glidewell |
| Maintainers | grantglidewell |

## Links

- npm: https://www.npmjs.com/package/react-percent-bar
- Repository: https://github.com/grantglidewell/react-progress
- Homepage: https://github.com/grantglidewell/react-progress#readme
- Issues: https://github.com/grantglidewell/react-progress/issues
- npm.io page: https://npm.io/package/react-percent-bar

## Recent versions

- 0.0.2 (latest) — 2019-11-02
- 0.0.1 — 2019-11-02

## README

# React Progress

A React progress bar component

## Installation

```
yarn add react-percent-bar
npm i react-percent-bar
```

## Usage

```javascript
import React, { useState } from 'react';
import ProgressBar from 'react-percent-bar';

const App = () => {
  const [percent, updatePercent] = useState(25);

  const updatePercent = () => {
    // update the progress bar percentage
    updatePercent(percent === 100 ? 25 : percent + 25);
  };
  return (
    <div onClick={updatePercent}>
      <h3>Im all the way up!</h3>
      <ProgressBar colorShift={true} fillColor="orange" percent={percent} />
    </div>
  );
};

export default App;
```

result:

![progress bar in action](https://raw.githubusercontent.com/grantglidewell/react-progress/master/example.gif)

## Options

- percent: number, Required
- height: string, default: '20px',
- width: string, default: '350px',
- radius: string, default: '50px',
- borderColor: string, default: '#eee',
- fillColor: string, default: 'lime',
- colorShift: string, default: false

---
_Source: https://npm.io/package/react-percent-bar · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
