šŸš€ Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →
Socket
Sign inDemoInstall
Socket

react-dashed-progress

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-dashed-progress

A React.js component to draw circular progress bar

1.0.0
latest
Source
npm
Version published
Weekly downloads
43
-38.57%
Maintainers
1
Weekly downloads
Ā 
Created
Source

react-dashed-progress

A React.js component to draw circular progress bar

Examples

  • To check out live examples visit https://dmitrymorozoff.github.io/react-dashed-progress/

Getting started

Install react-dashed-progress using npm.

npm install --save react-dashed-progress

You can also test the components locally by cloning this repo and doing the following steps:

NPM-scripts

Install dependencies from package.json:

npm install

Runs the app in the development mode.
Open http://localhost:1234 to view it in the browser.

npm run dev

Run linter

npm run lint

Start tests followed by jest

npm run test

Usage

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

PropsTypeDefault
sizeNumber160
barWidthNumber18
countBarsNumber30
trailThicknessNumber3
strokeThicknessNumber5
valueNumber0
strokeLinecap"butt", "square" , "round""round"
trailColorString#354A5E
strokeColorString#41B883
showTooltipBooleantrue
tooltipSizeNumber32
tooltipColorString#354A5E

Todo

  • Animation
  • Accessibility

Contributing

  • For bugs and feature requests, please create an issue
  • Lint and test your code
  • Pull requests and ⭐ stars are always welcome

License

MIT

Keywords

react-progress

FAQs

Package last updated on 25 Oct 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts