Skip to Content
Nextra 4.0 is released 🎉

ProgressBar

The ProgressBar component is a pixel-art styled visual progress indicator.
It supports labels, value display, custom max values, and customizable colors — ideal for loading states, step indicators, and progress tracking with a retro aesthetic.


🚀 Usage

Basic Example


import { ProgressBar } from "pixelartui-react"; <ProgressBar value={50} />

With Label


Loading...
<ProgressBar value={65} label="Loading..." />

Show Value


75%
<ProgressBar value={75} showValue />

Complete


Complete
100%
<ProgressBar value={100} label="Complete" showValue />

Empty


<ProgressBar value={0} />

Custom Max


Steps
60%
<ProgressBar value={3} max={5} label="Steps" showValue />

Custom Colors


60%
<ProgressBar value={60} backgroundColor="#1a1a2e" fillColor="#05EB57" showValue />

Styles


Dark
Light
<ProgressBar value={40} progressBarStyle="dark" label="Dark" /> <ProgressBar value={40} progressBarStyle="light" label="Light" />

đź”§ Props

PropTypeDefaultDescription
valuenumber—Current progress value.
maxnumber100Maximum value for the progress bar.
labelstringundefinedLabel text displayed alongside the progress bar.
showValuebooleanfalseDisplays the numeric progress value.
progressBarStyle"dark" | "light"undefinedApplies a light or dark theme to the component.
backgroundColorstringundefinedOverrides the default background color.
fillColorstringundefinedOverrides the default fill color of the progress indicator.
classNamestringundefinedAdds additional CSS classes for custom styling.
Last updated on