1.1.0 • Published 11 months ago

react-semicircle-progressbar v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

react-semicircle-progressbar

A semicircle progress bar for React applications.

alt text

Installation

Use the package manager npm to install react-semicircle-progressbar.

npm install react-semicircle-progressbar

Usage

import React from 'react';
import SemiCircleProgress from 'react-semicircle-progressbar';

function App() {
  return (
    <div>
      <SemiCircleProgress
        percentage={80}
        size={{
          width: 200,
          height: 200,
        }}
        strokeWidth={10}
        strokeColor="#f00"
      />
    </div>
  );
}

export default App;

Props

PropertyTypeDescription
strokeWidthnumberThe width of the progress bar line in pixels
strokeLinecap"butt" | "round" | "square"The type of end cap for the progress bar line ("butt", "round", or "square")
percentagenumberThe percentage of the progress bar filled
percentageSeperatorstringThe separator to use between the percentage and label text (default is "of")
size{ width: number, height: number }The size of the progress bar in pixels
strokeColorstringThe color of the progress bar line in CSS
fontStyle{ fontSize: string, fontFamily: string, fontWeight: string, fill: string }The style of the label text
hasBackgroundbooleanThe background of the progress bar
bgStrokeColorstringThe color of the progress bar background line in CSS

License

MIT

1.1.0

11 months ago

1.0.5

11 months ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago