Licence
MIT
Version
1.1.5
Deps
3
Size
55 kB
Vulns
0
Weekly
0
About
Simple progress bar in react
Demo
npm start
Props
className?: string;
min: number;
max: number;
value: number;
isLoading?: boolean;
label?: string | JSX.Element;
onClick?: () => void;
Style
The component is comming with no style.
It has a default style black and white you should override it.
css class dyna-progress-bar__background
Is the class name of the wrapper of the component, apply there the background color and/or borders.
css class dyna-progress-bar__progress
Is the inside progress bar, apply there the background of the progress bar.
css class dyna-progress-bar__label
Is the wrapper of the label, center the label as you prefer.
The default style
This the default styles you should override
// default style
.dyna-progress-bar {
&__background{
background-color: lightgray;
border: 1px solid grey;
}
&__progress{
background-color: rebeccapurple;
border-right: 1px solid grey;
}
&__label{
}
}