2.7.0 • Published 4 years ago

progress-arc-component v2.7.0

Weekly downloads
55
License
MIT
Repository
github
Last release
4 years ago

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;
`
2.7.0

4 years ago

2.6.0

6 years ago

2.5.0

7 years ago

2.4.0

7 years ago

2.3.0

7 years ago

2.2.0

7 years ago

2.1.0

7 years ago

2.0.0

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago