Package Exports
- react-progress-arc
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-progress-arc) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Simple circular progress meters for React.js, rendered in SVG.
Installation
npm install --save react-progress-arc
Usage Examples
Basic usage:
import React from 'react';
import ReactDOM from 'react-dom';
import ProgressArc from 'react-progress-arc';
const container = document.createElement('div');
document.getElementsByTagName('body')[0].appendChild(container);
ReactDOM.render(<ProgressArc completed={0.5} />, container);
Customisation
The following properties can be set to customise the arcs through React:
completed
- Set this to a value between 0 and 1. You probably want this bound tothis.state.something
.stroke
- Progress meter colour, default#444
.diameter
- External diameter, width and height of the arc, default50
.background
- Colour of the background circle, defaulttransparent
.strokeWidth
- Thickness of the arc drawn, default5
.
License
MIT