Progress

A React component in Beamline's Feedback category, in the free sample.

How much of a known task is done, or a moving bar when the length is unknown, with an optional label and value.

Use it for

  • Known progress of a task: import, upload, onboarding completion.

Not for

Anatomy

  • root wrapper (Radix progress track inside)
  • header (label, time left when asked, value with a check when done)
  • track
  • fill

Variants

  • tone: accent, success, warning, danger
  • size: sm, md

States

  • determinate (value)
  • indeterminate (value null)
  • running 2 s or more with showRemaining (time left from the pace so far)
  • complete (value = max; a check joins the value)

Keyboard

  • Not focusable; exposes role progressbar with value.

Motion

The fill eases to each new value over --pui-duration-standard; the indeterminate bar sweeps until a value arrives and stands still under reduced motion. When the value changes, the change itself stays in view for a moment (_shared/delta-ghost): what was lost sits as a pale ghost under the fill, holds about 0.7 s and drains toward the new end; what was gained arrives lit and cools over about 1.3 s. The ghost spans the real before and after, never an in-between value; a run of changes the same way extends one ghost. Reduced motion: the ghost is shown still for 1.1 s, then removed. The value text rolls to each new number over --pui-duration-standard (SlotText); done, a check arrives from a little smaller; the time-left words arrive the same way.

Props

PropTypeDefaultDescription
valuenumber | null0Done so far; null when the length is unknown (the bar sweeps).
maxnumber100Maximum permitted value. Defaults to 100.
labelReactNode—Shown above the bar and used as its accessible name.
showValueboolean—Shows the percentage, or `format`'s text, beside the label.
format(value, max) => string—Custom value text: (value, max) => "12 of 40 files".
showRemainingbooleanfalseEstimates the time left from the pace so far and shows it beside the label once the task has run for 2 s.
formatRemaining(ms: number) => string—Words for the estimate (ms left). Default "about 20 s left" / "about 3 min left".
tone"accent" | "success" | "warning" | "danger""accent"Semantic colour of the displayed content. Defaults to "accent".
size"sm" | "md""md"Control size within the supported size steps. Defaults to "md".
classNamesProgressClassNames—Classes for the named visual parts; no part overrides by default.
style / refCSSProperties / native Ref—style: Inline styles on the documented visual root; no overrides by default. ref: Receives the documented root element; no ref by default.
refRef<HTMLDivElement>—Receives the documented root element; no ref by default.

Built from

Used in

Dependencies

@radix-ui/react-progress, lucide-react, motion

Import

import { Progress } from "@beamline/progress";

Get it

Progress is part of Beamline UI. Install the parts you need in your React app as compiled packages or editable source. Progress is included in the free MIT sample. Get Beamline · Connect your agent

More in Feedback

  • Timer: A duration that counts down (or up) from your clock: Start, Pause, Resume, Reset and the finish reported once; the time left drawn as a bar you drag (or…
  • Notification centre: Updates that wait to be read: a bell with the unread count opens All / Unread, new and earlier groups, and per item mark read or dismiss.
  • Usage meter: An allowance and what fills it: one bar split by source, the room left, a warning near the limit and the overflow in its own red well past a notch at the…
  • Alert: A message that stays until it is dealt with: what happened, what to do, an action; danger and warning are announced; dismissing folds its height away.
  • Cookie consent: Asks once which cookies a visitor allows, with Reject all and Accept all given equal weight; Customise grows the notice in place into each category with…
  • Empty state: What a place will hold and the first step to fill it, instead of a blank; a compact size for panels and filtered tables.
  • Spinner: A ring that spins while work runs and closes into a drawn check or cross when it ends.
  • Announcement bar: A banner across the top for news and offers: messages take turns, a countdown ticks, and dismissing folds it away and can remember it.
  • Skeleton: Holds the shape of content while it loads, then crossfades into it, so nothing jumps.

Part of Beamline UI: polished, editable React components and complete screens for custom applications. Build your own style from any look; tokens, fonts, radii, motion; not only colours.