Skip to content
Vertical Jump Designs-uiFront-End Studio
Get Pro

v3.9 is out.

Feedback

Progress

Free2.8 KB gzipped

Linear progress bar. Shows determinate progress with a smooth transition, or an indeterminate sweep when value is not set. The root carries role="progressbar" (or meter) with the ARIA range attributes.

Accessibility: WCAG 2.2 AA · No A or AA violations in light or dark mode · No keyboard interaction of its own · Full report

Import

tsx
import { Progress, ProgressSegments, CircularProgress } from "@vjdesigns/vjdesigns-ui";

Importing only Progress adds about 2.8 KB of minified, gzipped JavaScript to your app (React not included). The stylesheet is shared by every component and loaded once: 75.1 KB gzipped.

Examples

Linear

Uploading report.pdf64%
Profile complete80%
Syncing
tsx
import { Progress, Stack } from "@vjdesigns/vjdesigns-ui";

export function Linear() {
  return (
    <Stack gap={5} style={{ width: "100%", maxWidth: "26rem" }}>
      <Progress label="Uploading report.pdf" value={64} showValue />
      <Progress label="Profile complete" value={80} showValue tone="success" size="sm" />
      <Progress label="Syncing" value={45} striped animated tone="info" />
    </Stack>
  );
}

Indeterminate

Pass value={null} when you can't measure progress.

Preparing your export
tsx
import { Progress } from "@vjdesigns/vjdesigns-ui";

export function Indeterminate() {
  return (
    <div style={{ width: "100%", maxWidth: "26rem" }}>
      <Progress label="Preparing your export" value={null} />
    </div>
  );
}

Segments

ProgressSegments splits one bar into labelled parts, with an optional legend.

Storage69%
  • Photos42%
  • Documents18%
  • Other9%
tsx
import { ProgressSegments } from "@vjdesigns/vjdesigns-ui";

export function Segments() {
  return (
    <div style={{ width: "100%", maxWidth: "26rem" }}>
      <ProgressSegments
        label="Storage"
        max={100}
        showValue
        showLegend
        segments={[
          { value: 42, label: "Photos", tone: "primary" },
          { value: 18, label: "Documents", tone: "accent" },
          { value: 9, label: "Other", tone: "neutral" },
        ]}
      />
    </div>
  );
}

Tone steps

toneSteps changes the fill color with the value: red up to 40%, yellow up to 75%, then green. Color never carries the meaning alone, so the value is shown too. resolveProgressTone gives custom indicators the same bands.

Free throws made32%
Field goals made61%
Practice attendance92%
68%
Season goal
tsx
import {
  CircularProgress,
  Flex,
  Progress,
  Stack,
} from "@vjdesigns/vjdesigns-ui";

export function ToneSteps() {
  const steps = [{ upTo: 40, tone: "danger" }, { upTo: 75, tone: "warning" }, { tone: "success" }] as const;
  return (
    <Stack gap={5} style={{ width: "100%", maxWidth: "26rem" }}>
      <Progress label="Free throws made" value={32} showValue toneSteps={steps} />
      <Progress label="Field goals made" value={61} showValue toneSteps={steps} />
      <Progress label="Practice attendance" value={92} showValue toneSteps={steps} />
      <Flex gap={4}>
        <CircularProgress label="Season goal" value={68} showValue toneSteps={steps} />
      </Flex>
    </Stack>
  );
}

Circular

semantic="meter" is for measurements (disk usage, scores) rather than tasks in progress.

72%
Course progress
91%
Health score
Loading
tsx
import { CircularProgress, Flex } from "@vjdesigns/vjdesigns-ui";

export function Circular() {
  return (
    <Flex gap={6} align="center">
      <CircularProgress value={72} showValue label="Course progress" />
      <CircularProgress value={91} showValue label="Health score" tone="success" semantic="meter" size="lg" />
      <CircularProgress value={null} label="Loading" size="sm" />
    </Flex>
  );
}

Accessibility

label names the bar, and formatValue (or valueText) gives screen readers words instead of a bare number: "1.2 of 4 GB" rather than "30". An indeterminate bar can still say what's happening with valueText.

Uploading photos1.2 of 4 GB
Preparing export
tsx
import { Progress, Stack } from "@vjdesigns/vjdesigns-ui";

export function Accessibility() {
  return (
    <Stack gap={5} style={{ width: "100%", maxWidth: "26rem" }}>
      <Progress label="Uploading photos" value={1.2} max={4} showValue formatValue={(value, max) => `${value} of ${max} GB`} />
      <Progress label="Preparing export" valueText="Collecting files" />
    </Stack>
  );
}

Translated

Percentages follow the locale (German shows "68 %"). Labels are your own text.

Einrichtung68%
42%
Speicher
tsx
import {
  CircularProgress,
  Progress,
  Stack,
  LocaleProvider,
} from "@vjdesigns/vjdesigns-ui";
import de from "@vjdesigns/vjdesigns-ui/locales/de";

export function Translated() {
  return (
    <LocaleProvider locale="de" messages={de}>
      <Stack gap={5} style={{ width: "100%", maxWidth: "26rem" }}>
        <Progress label="Einrichtung" value={68} showValue tone="primary" />
        <CircularProgress label="Speicher" value={42} showValue />
      </Stack>
    </LocaleProvider>
  );
}

Right to left

The first example again, inside a right-to-left LocaleProvider (Arabic). Layout, spacing and arrow icons mirror, and the components' built-in text is translated. The example's own text stays in English.

Linear

Uploading report.pdf64%
Profile complete80%
Syncing
tsx
import { LocaleProvider } from "@vjdesigns/vjdesigns-ui";
import ar from "@vjdesigns/vjdesigns-ui/locales/ar";

// Linear is the "Linear" example above.
<LocaleProvider locale="ar" messages={ar}>
  <Linear />
</LocaleProvider>

API reference

Progress

Progress props
PropTypeDefault
size

Bar thickness: sm 4px, md 8px, lg 12px.

"sm""md""lg"—
radius

Corner rounding of the track and fill.

"none""xs""sm""md""lg""xl""2xl""pill"—
striped

Diagonal stripes on the fill, for an energetic look.

boolean—
animated

Move the stripes (implies striped). Stops under prefers-reduced-motion.

boolean—
buffer

Secondary, lighter fill behind the main one, in the same units as value (e.g. how much of a video has buffered). Visual only: it is not exposed to assistive technology, so describe it in valueText if it matters.

number—
value

Current value. Leave undefined or pass null for the indeterminate state (an animated sweep; a calm pulse under prefers-reduced-motion). Values outside min..max are clamped.

number | null—
min

Lower bound of the range.

number—
max

Upper bound of the range.

number—
tone

Semantic color of the fill. Color never carries meaning alone: pair danger/warning with a label and showValue (or valueText).

"neutral""primary""accent""success""warning""danger""info"—
toneStepsNew in 3.5.1

Change the fill color with the value. Bands are percentages of the range, checked in order; the first whose upTo is at or above the current percentage wins, and a step without upTo catches the rest. tone is used while indeterminate or when no step matches. Example: [{ upTo: 40, tone: "danger" }, { upTo: 75, tone: "warning" }, { tone: "success" }]. Color never carries meaning alone: also show the value or describe the state in label / valueText.

readonly ProgressToneStep[]—
label

Visible label. Becomes the accessible name through aria-labelledby. Without it, pass aria-label (or aria-labelledby).

ReactNode—
showValue

Show the formatted value (a percentage by default, see formatValue).

boolean—
formatValue

Custom value formatter, e.g. (v, max) => \${v} of ${max} MB\`. Its result is shown with showValue and also used as aria-valuetext`.

ProgressFormatValue—
valueText

Overrides aria-valuetext, the text screen readers announce instead of the raw number (e.g. "Step 2 of 5: Shipping"). Also usable while indeterminate (e.g. "Preparing upload").

string—
semantic

ARIA role: progressbar for tasks (default), meter for static measurements.

"progressbar""meter"—

Also accepts native <div> attributes, plus className, style and ref.

ProgressSegments

Stacked bar made of labeled parts, with a legend (e.g. storage usage).

Accessibility: the bar is a single meter (or progressbar) whose value is the total, and whose aria-valuetext lists every segment ("Photos 42 GB, Apps 30 GB; 72 GB total"). The visual segments are hidden from assistive technology; the legend is a real list with text for every part, so the breakdown never depends on color.

ProgressSegments props
PropTypeDefault
segmentsRequired

The parts, in order from the start of the bar. Their sum is clamped to max.

ProgressSegment[]—
max

Total capacity (e.g. 256 for 256 GB).

number—
label

Visible label; the accessible name of the bar. Otherwise pass aria-label.

ReactNode—
showValue

Show the formatted total next to the label.

boolean—
formatValue

Formats segment values and the total, e.g. (v) => \${v} GB\`. Defaults to a percentage of max`.

ProgressFormatValue—
valueText

Overrides the generated aria-valuetext summary.

string—
semantic

ARIA role of the bar. Defaults to meter, since stacked usage is usually a measurement.

"progressbar""meter"—
size

Bar thickness: sm 4px, md 8px, lg 12px.

"sm""md""lg"—
radius

Corner rounding of the track.

"none""xs""sm""md""lg""xl""2xl""pill"—
showLegend

Show the legend (label and value for every segment).

boolean—

Also accepts native <div> attributes, plus className, style and ref.

CircularProgress

Ring-shaped progress indicator with rounded caps and an optional center slot. Determinate when value is set, spinning otherwise (a calm pulse under prefers-reduced-motion).

CircularProgress props
PropTypeDefault
size

Ring diameter: sm 32px, md 48px, lg 64px, xl 96px, or a number of pixels.

CircularProgressSize—
thickness

Stroke width in pixels. Defaults scale with size.

number—
children

Content in the center of the ring, e.g. an icon or custom text. Overrides the showValue percentage. Presentational: it is part of the progressbar, so put anything screen readers must hear in valueText.

ReactNode—
showValue

Show the formatted value in the center, in bold display type. Not rendered at size="sm" (too small to read); use label there instead.

boolean—
label

Visible caption under the ring; the accessible name. Otherwise pass aria-label.

ReactNode—
value

Current value. Leave undefined or pass null for the indeterminate state (an animated sweep; a calm pulse under prefers-reduced-motion). Values outside min..max are clamped.

number | null—
min

Lower bound of the range.

number—
max

Upper bound of the range.

number—
tone

Semantic color of the fill. Color never carries meaning alone: pair danger/warning with a label and showValue (or valueText).

"neutral""primary""accent""success""warning""danger""info"—
toneStepsNew in 3.5.1

Change the fill color with the value. Bands are percentages of the range, checked in order; the first whose upTo is at or above the current percentage wins, and a step without upTo catches the rest. tone is used while indeterminate or when no step matches. Example: [{ upTo: 40, tone: "danger" }, { upTo: 75, tone: "warning" }, { tone: "success" }]. Color never carries meaning alone: also show the value or describe the state in label / valueText.

readonly ProgressToneStep[]—
formatValue

Custom value formatter, e.g. (v, max) => \${v} of ${max} MB\`. Its result is shown with showValue and also used as aria-valuetext`.

ProgressFormatValue—
valueText

Overrides aria-valuetext, the text screen readers announce instead of the raw number (e.g. "Step 2 of 5: Shipping"). Also usable while indeterminate (e.g. "Preparing upload").

string—
semantic

ARIA role: progressbar for tasks (default), meter for static measurements.

"progressbar""meter"—

Also accepts native <div> attributes, plus className, style and ref.

See what changed in each version in the Changelog.

Accessibility report

Progress targets WCAG 2.2 AA. Below: a live axe-core audit of this page's examples, Lighthouse scores for the page in both modes, the accessibility behavior built into the component, and the checks only a person can do.

axe-core audit (live)

Running accessibility audit

Checking the examples above…

Lighthouse audit

Light mode

Score 100

37 passed · 0 failed · 28 not applicable · 10 to check by hand

Dark mode

Score 100

37 passed · 0 failed · 28 not applicable · 10 to check by hand

Lighthouse 13.5.0 audits the whole docs page (header and sidebar included), not just the examples, in English. Last run 11/27/2026. Some failed audits carry no weight in the score, so a page can score 100 and still list one.

Built-in behavior

Keyboard

Not focusable, so there's no keyboard interaction of its own.

Roles and states

Roles and states
ElementRoleStates and properties
Bar or ringprogressbararia-valuenow, aria-valuemin, aria-valuemax, aria-valuetext; no aria-valuenow while indeterminate
LabelnoneNames the progressbar through aria-labelledby
ProgressSegmentslistOne item per segment, with its value

Manual checks

Automated tools find roughly a third of accessibility issues. Test these in your app, with your content.

Manual accessibility checks
CheckWhat to testWCAG 2.2
KeyboardEvery action works with Tab, Shift+Tab, Enter, Space and the arrow keys, and focus never gets stuck.2.1.1 (A), 2.1.2 (A)
FocusFocus moves in a logical order, is always visible, and isn't hidden behind sticky headers.2.4.3 (A), 2.4.7 (AA), 2.4.11 (AA), 2.4.13 (AAA)
Screen readersNames, roles and states are announced correctly, and status changes are announced without moving focus.1.3.1 (A), 4.1.2 (A), 4.1.3 (AA)
ColorMeaning never depends on color alone; your own colors meet contrast in both modes.1.4.1 (A), 1.4.3 (AA), 1.4.11 (AA), 1.4.6 (AAA)
Zoom and reflowAt 200% text size and at 320px wide (400% zoom), nothing is cut off and no sideways scrolling is needed.1.4.4 (AA), 1.4.10 (AA), 1.4.12 (AA)
Pointer targetsClick and tap targets are at least 24×24px (44×44px for AAA), or spaced so they don't overlap.2.5.8 (AA), 2.5.5 (AAA)
MotionAnimations respect the reduced-motion setting.2.3.3 (AAA)