Skip to content

Drafter500/react-sectioned-progressbar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-sectioned-progressbar

Inspired by https://github.com/iqnivek/react-circular-progressbar.

React sectioned progress bar is an independent variation of circular progress bar. The only big difference is that the progress is divided by specified number of sections.

samples.png

Props:

NameDescription
sizePxSize of the component in pixels. The size is equal in height and width since the component is a circle
totalTotal value (maximum progress)
progressActuall progress value
thicknessThickness of the sections arcs
sectionsGapPercentGas between sections in percentage relative to the section itself. 0 means no gap, 50 means the gap between sections equals to the sections length
classNameCSS class name for the parent element of the component
textFormatterCallback function that is used to generate text inside in the center of the progressbar. E.g: progress => `${progress}%`
childrenEverything wrapped by the component is used as progress text

About

Variation of circular progress bar, this one with sections

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published