Progress Bar

Horizontal bar showing completion percentage. Two sizes, three label positions, and an animated live demo.

import{ ProgressBar } from "@pepulux/ui"

Label positions — none / right / bottom

Choose where the percentage label appears.

label=none (default)

label=right

30%

label=bottom

90%

Sizes — sm / md

sm = 4px track, md = 8px track.

size=sm (4px)

60%

size=md (8px)

60%

Multiple bars — storage breakdown

Stack multiple bars with different values to show usage per category.

Storage
74%
Bandwidth
45%
API calls
20%

Animated — live upload progress

Pair with state updates to show real-time upload or processing progress.

Uploading file…0%

Boundary values — 0% and 100%

0%
50%
100%

Props

PropTypeDefaultDescription
value*numberCurrent progress value (0 – max)
maxnumber100Maximum value. Value is clamped to [0, max].
label"none" | "right" | "bottom""none"Where to show the percentage label
size"sm" | "md""md"Track height — sm 4px / md 8px
aria-labelstringAccessible label for the progressbar role
classNamestringAdditional CSS classes on the wrapper