New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

color-coded-progress-bar

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

color-coded-progress-bar

Color coded Progress Bar for React.

latest
Source
npmnpm
Version
1.1.0
Version published
Maintainers
1
Created
Source

Window Progress Bar

Color coded Progress Bar for React.

image of bar

Table of contents

  • Installation
  • Usage
  • Options
  • Contributing
  • Versioning
  • License

Install

npm install color-coded-progress-bar

Usage

import { WindowProgressBar } from 'color-coded-progress-bar';

<WindowProgressBar tooltip value={7} />

Options

AttributeTypePurposeDefault
valueNumberDefines where the marker will be located.No default, is mandatory.
tooltipBooleanIndicates whether the bar will show the value on hover or not.False
labelBooleanIndicates whether the bar will show the min and max values or not.False
maxNumberDefines the maximum value of the bar10
colorsString[]Defines the colors for each section.['#f1a636', '#f1d836','#c8f136', '#f1d836']
sectors{min:number, max:number}[]Defines the sections.[{min:0, max:2}, {min:2, max:5}, {min:5, max:8}, {min:8, max:10}]
heightNumberDefines the height of the bar20

Contributing

Please read through our contributing guidelines. Included are directions for opening issues, coding standards, and notes on development.

Versioning

Maintained under the Semantic Versioning guidelines.

License

MIT © Rocio Ferreiro

Keywords

react

FAQs

Package last updated on 03 Jun 2022

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