Socket
Socket
Sign inDemoInstall

progress-arc-component

Package Overview
Dependencies
91
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    progress-arc-component

Simple progress arc for React, customizable with styled-components


Version published
Weekly downloads
317
increased by7.46%
Maintainers
1
Install size
10.7 MB
Created
Weekly downloads
 

Readme

Source

Simple progress arc for React (demo) NPM version Build status

Installation

$ yarn add progress-arc-component

Usage

import ProgressArc from 'progress-arc-component'

<ProgressArc value={63}/>

ProgressArc screenshot

Properties

NameDescriptionDefault
valueCurrent progress0
maxMaximum value100
unitValue unit%
arcColorProgress arc color#818a91
arcBackgroundColorArc background color#eceeef
textColorText color#818a91
textVisibleShow text inside arctrue
radiusArc radius90
roundedDraw rounded cornersfalse

Customization

ProgressArc generates SVG that can be tweaked with styled-components:

import styled from 'styled-components'

const StyledProgressArc = styled(ProgressArc)`
  height: 12em;
  width: 12em;
  border: 0.3em solid black;
  border-radius: 0.5em;
  padding: 1em;
`

Keywords

FAQs

Last updated on 17 Jul 2020

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc