# react-es6-progressbar.js

> Implementation of progressbar.js in React with ES6

Latest version **1.1.0** (published 2020-05-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-es6-progressbar.js
pnpm add react-es6-progressbar.js
yarn add react-es6-progressbar.js
bun add react-es6-progressbar.js
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2020-05-13 |
| First published | 2018-04-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 31 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Ronald Roe |
| Maintainers | ronaldroe |
| Keywords | react, progressbar.js |

## Links

- npm: https://www.npmjs.com/package/react-es6-progressbar.js
- Repository: https://github.com/ronaldroe/react-es6-progressbar.js
- Issues: https://github.com/ronaldroe/react-es6-progressbar.js/issues
- npm.io page: https://npm.io/package/react-es6-progressbar.js

## Dependencies (2)

- [react](https://npm.io/package/react.md) ^16.3.2
- [progressbar.js](https://npm.io/package/progressbar.js.md) ^1.0.1

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.1.0 (latest) — 2020-05-13
- 1.0.20 — 2018-10-23
- 1.0.19 — 2018-09-25
- 1.0.18 — 2018-09-10
- 1.0.17 — 2018-09-07
- 1.0.16 — 2018-09-07
- 1.0.15 — 2018-09-07
- 1.0.14 — 2018-09-07
- 1.0.13 — 2018-09-07
- 1.0.12 — 2018-09-06
- 1.0.11 — 2018-09-06
- 1.0.10 — 2018-05-18
- 1.0.8 — 2018-05-01
- 1.0.7 — 2018-05-01
- 1.0.6 — 2018-04-29
- … 5 more at https://npm.io/package/react-es6-progressbar.js/versions

## README

# React ES6 ProgressBar.js

### A React component library that implements [kimmobrunfeldt's ProgressBar.js](https://github.com/kimmobrunfeldt/progressbar.js) with full options support.

## Installation

```
$ npm install --save react-es6-progressbar.js
```

## Usage
```
import React, { Component } from 'react';
import { Circle, SemiCircle, Line } from 'react-es6-progressbar.js'

class App extends Component{

  const circle_options = {
    text: 'test',
    style: {
      color: 'green'
    }
  };

  const semicircle_options = {
    text: {
      value: 'semicircle test',
      color: 'rgba(255, 255, 255, 0.6)
    },
    color: '#333',
    duration: 1000
  };

  const line_options = {
    color: 'red',
    easing: 'easeOut',
    strokeWidth: '5'
  };

  render(){

    return(

      <Circle progress={0.75} options={circle_options} container_style={{height: '200px', width: '200px'}} />
      <SemiCircle progress={0.33} options={semicircle_options} container_style={{height: '200px', width: '200px'}} />
      <Line progress={1.0} options={line_options} container_style={{height: '200px', width: '200px'}} />

    );

  }

}
```

## Props

| Prop | Type | Default | Usage |
|------|:------:|:-------:|-------|
| container_class | **String** | *null* | Class to be added to container element                                                                                                   |
| container_style | **Object** | *null* | CSS styles for the container element                                                                                                     |
| progress        | **Number** | *0.5*  | [ProgressBar.js progress amount](http://progressbarjs.readthedocs.io/en/latest/api/shape/#animateprogress-options-cb) from 0 to 1, where 1 is 100% of the distance.     |
| options         | **Object** | *null* | [ProgressBar.js shape container options](http://progressbarjs.readthedocs.io/en/latest/api/shape/#new-shapecontainer-options)            |

## Licence
MIT

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