Skip to content

Progress

How far along something is - a bar or a ring, determinate or not. Built for agent runs and uploads.

On this page
Used for
  • Upload progress
  • Eval run completion
  • Budget used
  • Setup steps
  • Indexing jobs

Examples

Upload row

Sizes

Segments

Ring

Value label

Indeterminate

Right to left

Installation

npx knowns-ui@latest add progress
For Claude Code, Cursor or Codex: installs it and wires the props to your own data.

Props

label / aria-label
ReactNode / string
One is required. label is shown above the bar and names it (aria-labelledby).
value / max
number
Default0 / 100
Clamped into 0…max. role=progressbar with aria-valuenow / min / max / valuetext.
segments / readout / unit
{ value, tone?, color?, label? }[] / boolean / string
Default - / false / -
A bar in parts over one max (value is ignored). readout writes “62% 24 of 39 issues” for the first part. Parts with a label have a tooltip, and aria-valuetext lists them all.
valueLabel
"right" | "bottom" | "top" | "none"
Default"right"
Where the value text sits. top puts it on the label row.
format
(value, pct) => string
Default"42%"
Value text, also aria-valuetext. Wins over formatOptions; use it for steps.
formatOptions / locale
Intl.NumberFormatOptions / string
Format the value with Intl: percent, currency, unit. style percent formats the share of max.
helper
ReactNode
A line under the bar, linked with aria-describedby.
indeterminate
boolean
Defaultfalse
A band of light with a glow crosses the track (transform only, linear). Parked mid-rail under reduced motion. No aria-valuenow, aria-busy set.
tone
"neutral" | "accent" | "info" | "success" | "warning" | "danger"
Default"neutral"
Fill colour.
size
"sm" | "md" | "lg"
Default"md"
4, 6 or 8px track.
ProgressCircle.size
"sm" | "md" | "lg" | number
Default"md"
20, 36 or 56px preset, or any px size (16, 24, 32). The stroke scales with it.
ProgressCircle.showValue
boolean
Defaultfalse
Value in the middle (36px and up).
ProgressCircle.label / aria-label
string
One is required: the ring has no visible label.

What it handles

  1. 01Draws a bar with a 4, 6 or 8px track, or a ring with ProgressCircle, from `value` out of `max`, clamped between 0 and 100 percent.
  2. 02Requires a `label` or an `aria-label`, so every bar has a name, and reports `aria-valuenow` and `aria-valuetext`.
  3. 03Places the value text right, bottom or top with `valueLabel`, or hides it, and formats it with `format` or `formatOptions` and `locale`.
  4. 04Shows a `helper` line under the bar for things like "12.4 MB, about 20 seconds left".
  5. 05Switches to `indeterminate` when the amount of work is unknown: a band of light crosses the bar and the ring turns with a short arc.
  6. 06Fills from the right inside dir="rtl", and the ring fills clockwise from the top, counter-clockwise in rtl.

States

First render
Nothing. The bar paints at its value
none
Value change
The fill slides to the new value
280ms, ease in-out
Indeterminate bar
A band of light crosses the bar in a loop
none
Indeterminate ring
A short arc turns around the ring in a loop
none
Reduced motion
The value lands at once and the band parks mid-rail
0ms

Works with

When to use

When to use

  • Known or unknown progress of a task, as a bar or a ring.

When not to use

Using with AI

Use Copy page for AI above to give your assistant this page, Copy prompt under the install command to have it installed and wired to your data, or connect the Knowns UI MCP server and just ask:

  • Add the Knowns UI Progress to my app and wire it to my own data.
  • I need known or unknown progress of a task, as a bar or a ring. Set that up with the Knowns UI Progress.
  • Which Progress props do I need for a minimal setup? Show me a short example.

With the server connected, your assistant calls get_component({ name: "progress" }) and search_docs({ query: "progress" }).

Need help?

Stuck on Progress, or found something off? We read every message.