A React.js component to draw circular progress bar
- To check out live examples visit https://dmitrymorozoff.github.io/react-dashed-progress/
Install react-dashed-progress
using npm.
You can also test the components locally by cloning this repo and doing the following steps:
Install dependencies from package.json:
Runs the app in the development mode.
Open http://localhost:1234 to view it in the browser.
Run linter
Start tests followed by jest
import React from "react";
import ReactDOM from "react-dom";
import { DashedProgress } from "react-dashed-progress";
export class App extends React.Component {
render() {
return (
<DashedProgress value={5} />
);
}
}
ReactDOM.render(<App />, document.getElementById("root"));
Props | Type | Default |
---|---|---|
size | Number | 160 |
barWidth | Number | 18 |
countBars | Number | 30 |
trailThickness | Number | 3 |
strokeThickness | Number | 5 |
value | Number | 0 |
strokeLinecap | "butt", "square" , "round" | "round" |
trailColor | String | #354A5E |
strokeColor | String | #41B883 |
showTooltip | Boolean | true |
tooltipSize | Number | 32 |
tooltipColor | String | #354A5E |
- Animation
- Accessibility
- For bugs and feature requests, please create an issue
- Lint and test your code
- Pull requests and ⭐ stars are always welcome
MIT