({ progress, label = "Progress" }: ProgressBarProps)
| 10 | }; |
| 11 | |
| 12 | const ProgressBar = ({ progress, label = "Progress" }: ProgressBarProps) => { |
| 13 | const progressWidth = boundNumber(progress, 0, 100); |
| 14 | |
| 15 | return ( |
| 16 | <div |
| 17 | className="progress-bar-container" |
| 18 | role="progressbar" |
| 19 | aria-valuenow={progressWidth} |
| 20 | aria-valuemin={0} |
| 21 | aria-valuemax={100} |
| 22 | aria-label={label} |
| 23 | > |
| 24 | <div className="outer"> |
| 25 | <div className="progress-bar-fill" style={{ width: `${progressWidth}%` }}></div> |
| 26 | </div> |
| 27 | <span className="progress-bar-label">{progressWidth}%</span> |
| 28 | </div> |
| 29 | ); |
| 30 | }; |
| 31 | |
| 32 | export { ProgressBar }; |
nothing calls this directly
no test coverage detected