Skip to content

Simple progress arc for React, customizable with styled-components

Notifications You must be signed in to change notification settings

szastupov/progress-arc-component

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Name Description Default
value Current progress 0
max Maximum value 100
unit Value unit %
arcColor Progress arc color #818a91
arcBackgroundColor Arc background color #eceeef
textColor Text color #818a91
textVisible Show text inside arc true
radius Arc radius 90
rounded Draw rounded corners false

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

About

Simple progress arc for React, customizable with styled-components

Topics

Resources

Stars

Watchers

Forks

Packages