1.2.0 • Published 3 years ago

green-red-react-progress-bar v1.2.0

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

green-red-react-progress-bar

It is a library of react, in short, a progress bar.

  • It is easy to implement, with several options.
  • It can go from green to red or red to green.
  • It can have dark theme or light theme.
  • It has an extended or small version.
  • It can receive classes or styles.
  • It can may or may not include title.
  • It can may or may not include button.
  • It can may or may not include description.
  • It can be with rounded or straight edges.

To install

npm install --save green-red-react-progress-bar

Parameters

The following parameters can be passed to it.

PARAMETERSACTIONTYPEDEFAULT
darkTheamset dark themebooleanfalse
expandset expand modebooleanfalse
redToGreenset red to green progress barbooleanfalse
roundProgressbarset round progressbarbooleantrue
containerClasspass a class to containerstring-
containerStylepass a style to containerobject-
titleClasspass a class to titlestring-
titleStylepass a style to titleobject-
buttonClasspass a class to buttonstring-
buttonStylepass a style to buttonobject-
descriptionClasspass a class to descriptionstring-
descriptionStylepass a style to descriptionobject-
handleButtonthe function of the buttonfunction()=>{}
titleTextthe title textstring-
showButtonset the buttonbooleanfalse
titleButtonthe text buttonstring-
descriptionTextthe description textstring-
percentagethe percentagenumber0

Ej:

import ProgressBar from "green-red-react-progress-bar";

<ProgressBar
    darkTheam={true}
    expand={true}
    titleText={`This is the title`}
    showButton={true}
    titleButton={'Shoot the action'}
    descriptionText={`Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus et sem magna. Donec in mauris vel eros commodo lacinia in vel dui. Phasellus velit quam, mollis et commodo nec`}
    handleButton={()=>{console.log('click')}}
    percentage={30}
/>

Ej images:

progress image, dark theme 40% progress image, 90% progress image, dark theme 90% progress image, dark theme 90%, red to green progress image, dark theme 90%, no button progress image, dark theme 90%, no button, no description progress image, 90%, no title, no button, description progress image, 90%, no button, no description, no title, grey background progress image, 90%, no button, no description, no title, white background progress image, 90%, no button, no description, no title, square edges, white background

GitHub

https://github.com/leonelyo99/react-progress-bar

1.2.0

3 years ago

1.1.0

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago