🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

react-semicircle-progressbar

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-semicircle-progressbar

React component for semicircle progressbar

1.1.0
latest
Source
npm
Version published
Weekly downloads
660
-4.21%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

react

FAQs

Package last updated on 29 May 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts