Skip to content

ProgressBar

ProgressBar renders a track-and-fill progress indicator. It accepts progress (0–100) and optional style props for both the track and fill elements independently.

0%
33%
67%
100%
import { ProgressBar } from "@hyperserve/upload-react";
<ProgressBar progress={75} />
PropTypeDefaultDescription
progressnumberrequired0–100
trackStyleCSSPropertiesnoneStyles for the track element
fillStyleCSSPropertiesnoneStyles for the fill element
trackClassNamestringnoneClass for the track
fillClassNamestringnoneClass for the fill

The track and fill are separate elements, each accepting their own style and className props:

<ProgressBar
progress={75}
trackStyle={{ height: 8, borderRadius: 4 }}
fillStyle={{ background: "linear-gradient(90deg, #06b6d4, #3b82f6)" }}
/>