Progress Bar
Shows how much of a task is complete.
- Status
- ReadyBuild day 11 of 21
- Code
- In React
- Role
- Feedback
Usage
This demo is live, and the code below it is the same code, imports included. The component lives in src/ui of this repository and is not published to npm yet.
Pastes as editable layers. Shadows are not exported.
import { ProgressBar } from "@/ui";
export default function ProgressBarDemo() {
const value: number = 60;
return <ProgressBar label="Uploading" value={value} />;
}Variants and states
Every specimen is the real component from src/ui, held in one state.
Pastes as editable layers. Shadows are not exported.
Props
- label
- string · default none
- Required. Names what is progressing.
- value
- number · default 0
- 0 to 100. Ignored when indeterminate.
- type
- "linear" | "circular" · default "linear"
- Shape.
- mode
- "determinate" | "indeterminate" · default "determinate"
- Indeterminate is a process with no known duration.
- tone
- "primary" | "success" | "warning" | "danger" · default "primary"
- Fill color.
- showLabel, showValue
- boolean · default true
- The text around the bar.
Figma to code
Figma properties by their exact names from Naming, and the React prop that carries each one. The table covers the shared properties that bear on this component; the Figma file decides which of them its component exposes. None means there is no prop for it yet.
- 🧰 Type
- type
- linear or circular.
- 🔀 Mode
- mode
- determinate or indeterminate.
- 🎨 Tone
- tone
- primary, success, warning, or danger.
- Show Label, Label
- showLabel, label
- Same.
- Show Value, Value
- showValue, value
- The percent is computed from value.
Accessibility
What the code in src/ui does today, and what it leaves to you.
Keyboard
- Not focusable.
Screen readers
- role=progressbar with the label, and aria-valuenow from 0 to 100. Indeterminate has no value, so it is read as busy.
- The percent text is hidden because the value is already read.
What you still need to do
- Do not rely on color for failure. Change the label when the tone changes, such as Upload failed.
- The motion stops for people who ask for reduced motion, and the bar shows a still segment.
When to use
Uploads, processing, and any wait long enough to need a sense of progress.
Do and don't
Do
- Show the percentage or remaining amount in text.
- Use a determinate bar whenever the total is known.
Don't
- Fake progress that is not tied to real work.
- Use for waits under a second.
Related
4 of 28 other molecules, same role and ready ones first.
- AlertA persistent, inline message that communicates important information.Ready
- SkeletonA gray placeholder in the shape of content that is still loading.Ready
- ToastA brief, temporary notification that appears and disappears automatically.Ready
- AccordionStacked sections that expand to reveal their content.Ready
Status reflects the component tracker snapshot of 29 October 2026.