Skip to content
GitHub (opens in a new tab)

Progress

Task completion as a bar or circle, or an indeterminate bar when the percent is not known.

stableAtomcontracts/progress.json

Preview

Progress

Task completion as a bar or circle, 0 to 100. Percent can overlay the track, sit at the end, or sit in the ring hole. Tones are brand, warning, danger, and muted. Fill grows once on load. Not ProgressLabel or ProgressIndicator.

Master

Determinate medium bar at 33. Variants shows the percent, tones, label and the circle and semicircle shapes.

Usage

Known percent only. Cell type=progress composes this. Do not invent ProgressLabel, ProgressValue, ProgressIndicator, or MeterCircle.

Do's

  • Upload, import, or task completion
  • A determinate percent in a form, card, or page
  • A determinate percent as a ring or semicircle
  • Work is underway and the percent is not known: indeterminate bar
  • DataTable Cell type=progress (Cell composes this)

Don'ts

  • A short wait with no layout or percent, or a Button action — use Spinner or Button loading
  • A rating out of 5 — that stays a Cell type
  • A KPI number — use Scorecard
  • Part-to-whole share across segments — use PieChart
  • Numbered wizard or checkout steps — use ProgressSteps
  • Usage against a plan limit — use UsageList
  • A measure against a range with red, amber, and green zones, a datatip, or reference lines — use Meter
<Progress
  value={33}
/>

Task completion as a bar or circle from 0 to 100, or an indeterminate bar when the percent is not known. One piece. Optional name label. Percent overlay or end in Geist Mono; in the ring hole or half-ring bowl in the UI font (font.sans). Bar track and fill share radius.controlSm, the same subtle corners as every kit meter. Tones brand, success, warning, danger, muted, neutral. Sizes sm, md, lg. Fill grows once on load.

When to use

  • Upload, import, or task completion
  • A determinate percent in a form, card, or page
  • A determinate percent as a ring or semicircle
  • Work is underway and the percent is not known: indeterminate bar
  • DataTable Cell type=progress (Cell composes this)

When not to use

  • A short wait with no layout or percent, or a Button action — use Spinner or Button loading
  • A rating out of 5 — that stays a Cell type
  • A KPI number — use Scorecard
  • Part-to-whole share across segments — use PieChart
  • Numbered wizard or checkout steps — use ProgressSteps
  • Usage against a plan limit — use UsageList
  • A measure against a range with red, amber, and green zones, a datatip, or reference lines — use Meter

What an agent reads

import { Progress } from "agentic-ds-kit";
must
  • role=progressbar on the track or ring
  • Determinate: aria-valuemin 0, aria-valuemax 100, aria-valuenow rounded percent, aria-valuetext '{n}%'
  • Indeterminate: aria-valuemin and aria-valuemax only, no aria-valuenow; the unnamed default is Loading
  • Visible label uses aria-labelledby; unlabeled needs ariaLabel
  • Reduced motion: no grow-in and no slide; the indeterminate bar is a faint still fill
  • The bar fill slides to its value with a transform (it spans the track, which clips it), rising from empty on mount and gliding to each new value on the enter timing. No motion under prefers-reduced-motion
defaults
  • value 0
  • size md
  • shape bar
  • showValue false
  • valuePosition end
  • tone brand
  • indeterminate false
stops if
  • Do not invent ProgressLabel, ProgressValue, ProgressTrack, ProgressIndicator, or ProgressRoot
  • Do not invent MeterCircle or ProgressCircle
  • Do not use PieChart for a determinate percent ring
  • Do not use img assets for the ring
  • Do not add threshold-zone rings, datatip, or reference lines — use Meter
  • Do not use radix or @base-ui/react
  • Do not use a native progress element
  • Do not use raw hex
  • Do not add a multi-segment status bar
  • Do not use Progress for ordered wizard steps — use ProgressSteps
  • Do not use Progress alone for usage against a plan limit — use UsageList
  • Do not skip prefers-reduced-motion on the load animation
  • Do not round the bar ends
  • Do not use indeterminate on a ring — use Spinner for a short wait

From contracts/progress.json: must is the a11y requirements, defaults the prop defaults, stops if the doNot rules where the agent asks instead of inventing a cousin.

Props

NameTypeRequiredDefaultNotes
valuenumberNo00 to 100. Clamped.
sizesm | md | lgNomdBar track height (corners radius.controlSm, fill matches): sm is space-1, md is space-2, lg is space-3. Overlay uses space-5. Circle and semicircle: sm 56, md 96, lg 196.
shapebar | circle | semicircleNobarbar is the track. circle is a donut ring. semicircle is a bottom U gauge: 0 to 100 maps onto 180 degrees, not a cropped 360 degree ring. Same piece. Size sets the ring, not bar height.
labelstringNo—Visible name above the track. Prefer this over ProgressLabel.
showValuebooleanNofalseShows the rounded percent. Overlay sits on the bar. End sits after the bar, or in meta when a name label is set. Circle puts it in the hole. Semicircle puts it in the bowl. Bar percent (overlay, end) is Geist Mono; circle and semicircle percent is the UI font (font.sans). Both use tabular figures.
valuePositionoverlay | endNoendBar only. overlay centers the percent on the track. end puts it after the bar, or opposite a name label in the meta row. Circle uses the hole. Semicircle uses the bowl.
toneenumNobrandsuccess is a finished or healthy result. muted is an ink fill; neutral is a mid grey for a value that carries no judgement. brand | success | warning | danger | muted | neutral
indeterminatebooleanNofalseBar only (a ring shape falls back to the bar). A third of the track slides across. value and showValue are ignored, and aria-valuenow and aria-valuetext are left off. Reduced motion: a faint still fill.
ariaLabelstringNo—Required when label is omitted. Cell passes the percent or its label.
  • Component
    →

    Button

    Clickable action control with appearance × mode (plus an optional flat set) and a fixed set of sizes.

  • Component
    →

    Spinner

    Spinning circular loader for short indeterminate waits.

  • Component
    →

    Cell

    Inline cell content for datasets: text, link, avatar, file, payment, badge, trend, avatar group, select, progress, rating, or row actions, with optional checkbox.

  • Component
    →

    Scorecard

    one KPI with label, value, optional delta/trend/hint/badge