Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

reactjs-percentage-circle

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

reactjs-percentage-circle

a component for loading spinner

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Reactjs-percentage-circle

npm Node Version Build Status

Reactjs-percentage-circle is a component which supports you define your percent and draw the circle.And also you can use it as a progress bar.And you can show some data in a circle you want.

React Native Version

This is a screenshot of the Demo

Demos

Start

npm i reactjs-percentage-circle --save


import PercentageCircle from 'reactjs-percentage-circle';

//...

render() {
  <div>
    <PercentageCircle percent={80}></PercentageCircle>
    <PercentageCircle percent={80}>
      <p>Children</p>
    </PercentageCircle>
  </div>
}

Options

PropsTypeExampleDescription
colorstring'#000'the color of border
bgcolorstring'#e3e3e3'the background color of the circle
innerColorstring'#fff'the color of the inside of the circle
percentNumber30the percent you need
radiusNumber20how large the circle is
borderWidthNumber(default 2)5the width of percentage progress bar
textStyleArray{fontSize: 24, color: 'red'}define the style of the text which in the circle
childrenjsx<Text>123</Text>define the children component in the circle

Contributions

Your contributions and suggestions are welcome 😄💐

MIT License

Keywords

FAQs

Package last updated on 23 Mar 2017

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc