1.1.0 • Published 2 years ago

color-coded-progress-bar v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Window Progress Bar

Color coded Progress Bar for React.

image of bar

Table of contents

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