ui-kit0.0

Feedback

Progress

How much of a known task is done.

Linear

A bar for a known amount of work. Set max when the total is not 100. Use a status tone only when the colour carries meaning: nearly full, complete, failed.

Storage6.2 of 10 GB
Seats11 of 12 used
Upload complete100%

When to use

  • Uploads, installs, onboarding steps and quotas: anything with a known total.
  • Without a value, the bar becomes indeterminate: a short sliding bar for work of unknown length.

Not for: a plain wait with no measure (use a spinner), or a value that is a score or rating (use a meter or chart).

Circular

ProgressCircle draws the same value as a ring with the percentage in the middle, or your own content. Four sizes from 40 to 128px.

35%
62%
92%
8/8steps

Live updates and indeterminate

Value changes glide on the smooth spring and never overshoot. Pass value={null} (or omit it) for the indeterminate state. Press start, or switch back to indeterminate.

Ready to upload

API

Progress

PropTypeDefaultDescription
valuenumber | null—Current value. null or omitted: indeterminate.
maxnumber100The value that means done.
size'sm' | 'md' | 'lg''md'Track thickness 4 / 8 / 12px.
tone'default' | 'success' | 'warning' | 'destructive' | 'info''default'Indicator colour.
getValueText(value, max) => string—Text for aria-valuetext, e.g. “3 of 5 files”. Default: the percentage.
...propsHTMLAttributes<HTMLDivElement>—Forwarded, including ref and aria-label.

ProgressCircle

PropTypeDefaultDescription
size'sm' | 'md' | 'lg' | 'xl''md'Diameter 40 / 64 / 96 / 128px.
childrenReactNode—Centre content. Default: the percentage. null for an empty ring.
...value, max, tone, getValueText—Same as Progress.

State is exposed as data-state="indeterminate | loading | complete" and the value as the --ui-progress-pct custom property.

Accessibility

  • role="progressbar" with aria-valuemin, aria-valuemax and aria-valuenow. Indeterminate bars omit aria-valuenow.
  • Always give it a name: aria-label, or aria-labelledby pointing at a visible label.
  • aria-valuetext defaults to the percentage; pass getValueText for something more useful.
  • Progressbars are not live regions: announce milestones yourself (“Upload complete”) in a polite status.

Motion

  • Value changes move the indicator with transform on --ui-spring-smooth (the ring animates stroke-dashoffset). No overshoot.
  • Indeterminate: a 40% bar slides across in 1.4s; the ring spins.
  • Reduced motion: the value still updates; the indeterminate bar becomes a faint full-width bar.