MCPcopy Create free account
hub / github.com/wavetermdev/waveterm / ProgressBar

Function ProgressBar

frontend/app/element/progressbar.tsx:12–30  ·  view source on GitHub ↗
({ progress, label = "Progress" }: ProgressBarProps)

Source from the content-addressed store, hash-verified

10};
11
12const 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
32export { ProgressBar };

Callers

nothing calls this directly

Calls 1

boundNumberFunction · 0.90

Tested by

no test coverage detected