Use it for work with a known end or for capacity. Pass value null for unknown length, use the meter variant for quotas and the ring where space is square.
When not to use
For a page still loading use Skeleton. For a live changing figure use Number Ticker; for steps of a flow use Stepper.
Use a progress bar for work with a known end: uploads, imports, exports, quotas filling up, steps
completed. Pass value={null} while the length of the work is unknown (processing on the server).
Use the meter variant for capacity (storage, seats) and the ring variant where space is square
(a task card, an onboarding checklist). For a page that is still loading, use a skeleton instead.
When the value changes the tip of the fill lights for a beat (charge), then the fill's leading
edge springs to the new value while its start stays anchored (action); on lively and
playful the tip leads a little past the value and settles back. At 100% the tip squashes against
the end of the track and a success ball with a drawn check rounds out of it (settle), while the
value text crossfades to "Done". At calm there is no overshoot, so no squash, but the ball and
check still appear: they are the completion mark.
A ring shows the steps done out of max. Checking the last step draws the arc to the top, where
the success ball lands with its check and the centre text turns to "Done".
The meter splits the track into segments (10 by default) that light in a cascade toward the
value. Past warningAt (80%) the lit segments tint warning from the top segment down, past
dangerAt (95%) destructive.
Built on Radix Progress: role="progressbar" with aria-valuemin, aria-valuemax,
aria-valuenow (absent while indeterminate) and aria-valuetext from getValueLabel (a
percentage by default; pass a better one, such as "7.8 of 10 GB used").
Give it a name: label is linked with aria-labelledby; without a label pass aria-label. In
development a warning is logged when neither is present.
The meter variant keeps role="progressbar": role="meter" support in screen readers is uneven.
Most screen readers do not announce progressbar changes. announce adds a polite live region that
reads quarter steps ("Upload 50%") and the completion ("Upload Done"), never every value.
The fill, segments, ring arc and completion ball are decorative (aria-hidden). The state is never
conveyed by color alone: the value text, "Done" and the check carry it.
The fill uses your theme's tone on muted for 3:1 non-text contrast; warning gets a 1px rim mixed
toward foreground so a light yellow still reads on a light track. The check is white on success
(dark background color in dark mode).
With reduced motion (the OS setting, or MotionKitProvider reducedMotion="always") there is no tip
highlight, overshoot or wall squash: the fill glides to its value in a short fade. Meter segments and
the ring arc fade to their state together. The indeterminate pill stops travelling and rests centred
on the track with a soft gradient, while your label ("Processing…") carries the meaning. At 100% the
success ball fades in with its check already drawn.
Determinate bars animate only on a value change, with transform, width and opacity driven by
Motion values (no React render per frame). The indeterminate pill is the only loop: one trip every
1.8 seconds, paused off screen, in hidden tabs and under reduced motion (useShouldAnimate). Many bars
in a list share one spring and do not stagger after the first draw.
Technical sheet
Motion
calm
260 ms · bounce 0
lively
400 ms · bounce 0.3
playful
540 ms · bounce 0.45
Main spring of each temperament. Set it with the temperament prop or MotionKitProvider; the default is lively.
Size
Not measured yet · budget 6.0 kB gzip
Component and MotionKit helpers; excludes react, react-dom, @radix-ui/react-progress, motion.
Dependencies
@radix-ui/react-progress · peer
motion · peer
Triggers
a value change, entering the viewport, a loading state
Reduced motion
The fill glides to its value in a short fade with no overshoot or wall squash, meter segments and the ring fade to their state together, indeterminate shows a static centred pill, and the completion ball fades in with its check drawn.
Keyboard
No keyboard interaction of its own.
Browsers
Last 2 versions of Chrome, Edge, Firefox and Safari (iOS 16.4+)