Progress

Displays an indicator showing the completion progress of a task, typically displayed as a progress bar.

Spec · from metadata

When to use

  • •Showing upload, download, or processing progress
  • •Showing how complete something is as a percentage, such as a profile's completeness
  • •Displaying a metric as a filled bar (e.g., storage usage)

When not to use

  • •For indeterminate loading states — use Skeleton or a spinner instead
  • •For the steps of a wizard — use Stepper (variant="linear-progress" draws this bar with "Step N of M" as its value)
  • •For a chart-style radial figure with several segments — use Chart; circular Progress is a single value

Variants

PropValuesDefaultDescription
variantlinearcircularlinearlinear is the full-width bar. circular is a 96px ring with the value centred ("72%") — for a score or completion figure that stands on its own, such as a profile's completeness on a card. The number carries no unit word.

Anti-patterns

Avoid<Progress value={0.66} />
Prefer<Progress value={66} />

Value is a percentage (0-100), not a decimal fraction

Avoid<Progress className="bg-blue-500" value={50} />
Prefer<Progress value={50} />

className applies to the track (Root), not the indicator; use the design system's bg-primary for the fill, which is set by default

Accessibility

  • Required ARIAaria-valuenow (set from value by Radix)aria-valuemin (0, set by Radix)aria-valuemax (max, default 100, set by Radix)aria-valuetext (Radix: the rounded percentage, e.g. "40%"; pass getValueLabel to change it)
  • Screen readerRadix sets role='progressbar', aria-valuenow, aria-valuemax and aria-valuetext from value and max, on the bar and the ring alike; without a value the bar is indeterminate. Add aria-label when the surrounding text does not say what is progressing.

Token bindings

TokenCategoryUsage
bg-primary/20colorTrack (unfilled) background
bg-primarycolorIndicator (filled) bar color
rounded-fullradiusFully rounded track ends
Recent changes
  • fixed

    A linear Progress tells screen readers its value

    2026-10-30

  • new

    Progress has a circular variant

    2026-10-30

Import

import { Progress } from "@timelycare/helix-ui"

Structure

PartTailwind
Root (track)relative h-2 w-full overflow-hidden rounded-full bg-primary/20
Indicatorh-full bg-primary rounded-full transition-all

Anatomy

┌─────────────────────────────────────────┐  ← Root (bg-primary/20)
│████████████████████                     │  ← Indicator (bg-primary)
└─────────────────────────────────────────┘
         └── width based on value prop

Common Patterns

Basic Progress

<Progress value={33} />

With Label

<div className="space-y-2">
  <div className="flex justify-between text-sm">
    <span>Progress</span>
    <span className="text-muted-foreground">33%</span>
  </div>
  <Progress value={33} />
</div>

Animated Progress

const [progress, setProgress] = useState(0)

useEffect(() => {
  const timer = setTimeout(() => setProgress(66), 500)
  return () => clearTimeout(timer)
}, [])

<Progress value={progress} />

Task Completion

const completed = 3
const total = 5

<div className="space-y-2">
  <p className="text-sm text-muted-foreground">
    {completed} of {total} tasks completed
  </p>
  <Progress value={(completed / total) * 100} />
</div>

Circular

<div className="flex items-center gap-6">
  <Progress variant="circular" value={5} max={7} aria-label="Profile completeness" />
  <p className="text-muted-foreground text-sm">5 of 7 sections done. Billing and Branding are left.</p>
</div>

variant="circular" draws a 96px ring with the value in the middle. Use it when the percentage is the point of the card, such as a profile's completeness. The ring shows the number only: "71%", not "71% complete". Put what the number means in text beside it, and give the ring an accessible name (aria-label, or aria-labelledby pointing at a visible heading) so a screen reader says what the percentage is of. The ring and the bar both measure value against max (default 100), so a count can go in as it is: value={5} max={7} shows 71%. variant="linear" (the default) is the bar. Size the ring with className (size-16, size-32); the stroke scales with it.


States

StateAppearance
Empty (0%)Only track visible (bg-primary/20)
PartialIndicator fills proportionally
Complete (100%)Indicator fills entire track
IndeterminateUse CSS animation (not built-in)

Indeterminate Pattern

// Add to globals.css
@keyframes progress-indeterminate {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(400%); }
}

// Component usage
<Progress 
  value={undefined} 
  className="[&>div]:animate-[progress-indeterminate_1.5s_ease-in-out_infinite] [&>div]:w-1/4" 
/>

Accessibility

  • Built on Radix Progress — handles ARIA attributes automatically
  • Applies role="progressbar" with aria-valuenow and aria-valuemax
  • Screen reader: announces progress value
  • No keyboard interaction needed (informational element)
  • Add aria-label to describe what is loading

Gotchas

ProblemSolution
Value exceeds 100Clamp value: Math.min(100, value)
No visual feedback at 0%Track (bg-primary/20) always visible
Jerky animationAdd transition-all to indicator
Indeterminate not supportedUse custom CSS animation pattern above

See Also

  • Related Components: Skeleton (content placeholder during loading), Spinner (inline loading indicator)

Last updated: February 9, 2026

TimelyCare Design System

v0.14.0