Integrated ResearchPicasso
Components

Progress

Work in flight, with an end — an upload, an import, a scan.

{/* Generated by scripts/build-component-docs.mjs — do not edit. The source is the component folder: guidance.json, the doc block and the props. Change those. */}

Work in flight, with an end — an upload, an import, a scan.

Import

import { Progress } from "@ir/ui";

Watch out

  • The track was drawn on bg/neutral/subtle. That is neutral-50 in light — the app background itself, and one step off a white card — so the track vanished and the bar had no visible end: 40% read as a short bar, not as 40% of something. Corrected to bg/layer/emphasis: a translucent tint that reads the same on the page, on a card and in both modes, which is what a thin track needs — bg/neutral/muted (one step past subtle since 2 Oct) is still only 1.05 on the page in light. A resting track also should not borrow a state word like "pressed". Slider, Meter and File upload take the same token. Figma corrected to match.

Variants

AxisOptionsDefault
variantbrand · neutralbrand

Props

PropTypeRequiredWhat it does
valuenumber | null0–100. Leave undefined for work of unknown length — see the note below.
labelReact.ReactNodeThe left-hand label. Its presence is what draws the label row.
valueLabelReact.ReactNodeThe right-hand label. Defaults to the percentage when a label is set.

Do and don't

Use Meter for a measurement; Progress is for something finishing.

Don't — Use a progress bar for a reading like MOS or disk usage.

Progress implies a direction and an end. A value that can go back down reads as work being undone.

Pass value={null} until you know, so it announces as indeterminate.

Don't — Show 0% while waiting for the server to say how much there is.

0% is a claim that nothing has happened yet. Usually something has — you just cannot measure it.

Show real progress, or an indeterminate bar, or nothing.

Don't — Animate a bar to 90% and hold it there while you wait.

A bar that stalls near the end is worse than no bar: it makes a promise about time and then visibly breaks it.

Name the work, and give a count when you have one.

Don't — Show a bare bar with no idea what it is doing.

A percentage answers "how far", never "how long" or "of what". "420 of 1,000 endpoints" answers all three.

Show one bar for the batch, and per-item state as text.

Don't — Stack a progress bar per item in a list of fifty.

Fifty animating bars are a texture, not information, and they cost more to render than the work being measured.

Accessibility

  • Radix puts role="progressbar" and the aria-value* attributes on the root, and omits aria-valuenow when value is null — which is exactly how an indeterminate progress bar should read.
  • Pass null rather than 0 for work of unknown length. Zero means "started, nothing done"; null means "no idea", and they announce differently.

Where it is drawn

Figma — structure from figma, measurements from figma.

Open in Storybook

On this page