Skip to content

Zero dependency circular dashed progress bar component for React

NotificationsYou must be signed in to change notification settings

amit08255/circular-dashed-progress-react

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Circular Dashed Progress React

This is zero dependency dashed circular progress bar component in React. It generates a dashed circular progress indicator using SVG.

Usage

Examples:

image

import CircularProgressBar from "./index";

<CircularProgressBar selectedValue={8} />

<CircularProgressBar
    selectedValue={25}
    maxValue={50}
    textColor='#f00'
    activeStrokeColor='#cc6600'
    withGradient
/>

<CircularProgressBar
    selectedValue={75}
    maxValue={100}
    radius={100}
    activeStrokeColor='#0f4fff'
    withGradient
/>

<CircularProgressBar
    selectedValue={55}
    maxValue={90}
    radius={80}
    activeStrokeColor='#cc6633'
    withGradient
    anticlockwise
/>

Properties

PropDescriptionDefault
maxValueMax Value of the progress.10
selectedValueSelected Value of the progress.0
radiusRadius of the Circular Progress Bar.60
strokeWidthStroke Width of the progress.6
labelThis is any label that needs to be shown below the progress number.``
labelFontSizeFont Size for Label.#000
activeStrokeColorActive Stroke.#05a168
inactiveStrokeColorInactive Stroke Color.#ddd
backgroundColorBackground Color inside the progress circle.#fff
textColorColor of the Number Text, which shows the active number.#000
valueFontSizeFont Size of the number Text.``
withGradientWhether to apply gradient on the outer Progress bar.false
anticlockwiseWhether progress bar in Clockwise or not (default: Clockwise).false
initialAngularDisplacementAny initial Angular Displacement.0