1.0.1 • Published 9 months ago

react-svg-circular-progressbar v1.0.1

Weekly downloads
-
License
-
Repository
-
Last release
9 months ago

react-svg-circular-progressbar

A circular progress bar in React is a visual component built with SVG that displays the progress of a task or process in the form of a circle. It is often used to indicate the completion status of an operation or to show the progress of a loading task.

Installation

npm install react-svg-circular-progressbar
yarn add react-svg-circular-progressbar

Usage

import CircularProgressBar from "react-svg-circular-progressbar";

<CircularProgressBar
  size={100}
  progress={40}
  rotate={-90}
  trackWidth={4}
  trackColor="grey"
  indicatorWidth={4}
  indicatorColor="red"
  indicatorCap="round"
  className=""
>
  {children}
</CircularProgressBar>;

Props

NameTypeDefaultDescription
sizenumber100Circle size
progressnumber40Progress value
rotatenumber-90Progress circle rotation
trackWidthnumber4Track width
trackColorstring'grey'Track color
indicatorWidthnumber4Indicator width
indicatorColorstring'red'Indicator color
indicatorCapstring'round'Indicator line cap (round, square, butt)
childrennodenullChildren - Wrap HTML elements
classNamestring''Progress bar class name
1.0.1

9 months ago

0.0.4

11 months ago

0.0.3

11 months ago

0.0.2

11 months ago

0.0.1

11 months ago