vert-ui
Browse docs
All components

Progress

Determinate and indeterminate progress bars. The indicator moves with transforms only, and the optional percent readout counts in sync with it, so both stay smooth under reduced motion and on low-power devices.

Install

Install the component

Add the source straight into your project with the shadcn CLI — no package dependency to track.

npx shadcn@latest add https://vert-ui.dev/r/progress.json

Preview

Live preview

Preparing workspace…

Usage

Examples

With a readable value and percent

<Progress
  value={64}
  max={100}
  valueText="45 of 100 uploads"
  showPercent
  aria-label="Upload"
/>

Indeterminate while working

{uploading && <Progress aria-label="Uploading" />}

Sizing and color

<Progress value={80} variant="brand" size="lg" aria-label="Storage" />
<Progress value={30} variant="destructive" size="sm" aria-label="Errors" />

Reference

Props

PropTypeDefaultDescription
valuenumber—Current value clamped between 0 and max. Omit it for an indeterminate bar (no aria-valuenow).
maxnumber100Upper bound of the range, exposed as aria-valuemax.
valueTextstring—Human readable value announced instead of the raw number, e.g. "45 of 100 uploads".
showPercentbooleanfalseRenders a visible tabular readout (e.g. 64%) beside the bar. Hidden from assistive tech — aria-valuenow already announces the value.
variant"default" | "brand" | "destructive""default"Color of the filled portion.
size"sm" | "md" | "lg""md"Track height.

Accessibility

Accessibility notes

  • Renders role="progressbar" with aria-valuemin, aria-valuemax and aria-valuenow.
  • Always pass aria-label (or aria-labelledby) — a bare progress bar has no accessible name.
  • valueText is what gets announced: prefer "45 of 100 uploads" over a bare number.
  • showPercent is aria-hidden: the progressbar role still announces the value, so the visible readout never reads twice.
  • Indeterminate bars omit aria-valuenow, which is how assistive tech recognises unknown duration.
  • The indicator only animates transform, and the global reduced-motion override shortens it to 0.01ms.
  • When value changes, the percent readout tweens toward the new number over 300ms to match the bar; under prefers-reduced-motion it updates instantly.