Socket
Book a DemoInstallSign in
Socket

react-progressbar-semicircle

Package Overview
Dependencies
Maintainers
2
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-progressbar-semicircle

Progress bar component in the shape of a semicircle

1.2.1
latest
Source
npmnpm
Version published
Weekly downloads
2.7K
-3.66%
Maintainers
2
Weekly downloads
 
Created
Source

react-progressbar-semicircle

Progress bar component in the shape of a semicircle - Try it out!

NPM GZip Size

Install

npm install --save react-progressbar-semicircle

Usage

import React, { Component } from "react";

import SemiCircleProgressBar from "react-progressbar-semicircle";

class Example extends Component {
  render() {
    return <SemiCircleProgressBar percentage={33} showPercentValue />;
  }
}

SemiCircleProgressBarWithPercentValue

API

PropertyDescriptionTypeRequiredDefault
strokeColor of the progress barstringfalse#02B732 #02B732
strokeWidthWidth of the progress barnumberfalse10
backgroundBackground color for the progress barstringfalse#D0D0CE #D0D0CE
diameterDiameter of the semicirclenumberfalse200
orientationOrientation of the semicircle. Supports 'up' and 'down'stringfalse'up'
directionDirection of the progressbar. Supports 'left' and 'right'stringfalse'right'
percentagePercentage to be drawn on the bar. Number between 0 - 100numbertrue
showPercentValueShow percentage value as a number in the middle of semicirclebooleanfalsefalse

Demo

This repo comes with an example create-react-app under example/ that can be run locally to experiment with the component. This demo is also hosted here.

cd example
npm install
npm start

This will start the create-react-app dev server locally on port 3000 and open the demo app in your default browser.

Credit

This library is bootstrapped with the use of Create-React-Library CLI

License

MIT © ThomasBem

Keywords

progress

FAQs

Package last updated on 25 Apr 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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.