Skip to main content

Progress

An accessible progress bar whose fill follows a sub-stepped spring, with a sliding track for unknown durations and an optional shimmer effect.

Compiling primitives64%
Progress·value=64

Customize

Value (%)64
Speed1

Installation

Add the base component with the registry command:

npx shadcn@latest add @kinetic/progress

Install an effect separately when you need it. Each command also installs the base progress.

npx shadcn@latest add @kinetic/shimmer-progress

Usage

Pass the current value. The bar reads it against max, which defaults to 100.

import { Progress } from "@/components/kinetic/ui/progress";

export function Upload() {
  return <Progress value={64} aria-label="Upload progress" />;
}

Shimmer

Use ShimmerProgress for a light sweep that loops along the filled part while the bar has a value.

import { ShimmerProgress } from "@/components/kinetic/ui/shimmer-progress";

<ShimmerProgress value={76} aria-label="Uploading assets" />

Every effect accepts the same props as Progress.

Indeterminate

Pass value={null} when the duration is unknown. A segment slides across the track and aria-valuenow is left out.

<Progress value={null} aria-label="Syncing" />

Without animation

Set animated={false} to jump straight to each new value, for example when the value already updates smoothly.

<Progress value={value} animated={false} />

Value label

aria-valuetext defaults to a percentage. Pass getValueLabel to announce something else.

<Progress
  value={3}
  max={8}
  getValueLabel={(value, max) => `${value} of ${max} files`}
/>

Custom layers

indicatorClassName styles the fill and indicatorChildren renders extra layers inside it. Effects such as ShimmerProgress are built on this slot.

<Progress value={40} indicatorClassName="bg-emerald-500" />

Motion preferences

Tune the fill with stiffness and damping, and scale every animation with speed. Reduced motion jumps to each value, stops the shimmer and slows the indeterminate slide.

API Reference

Progress

Accessible progressbar whose fill follows a sub-stepped spring, with a sliding track for indeterminate progress.

PropTypeDefaultDescription
value / maxnumber | null / numberundefined / 100Determinate value between 0 and max, or null/undefined for indeterminate mode.
animatedbooleantrueSprings the fill toward new values. When false the bar jumps straight to the value.
indicatorClassName / indicatorChildrenstring / React.ReactNode-Classes and extra layers for the determinate indicator, used by effects such as ShimmerProgress.
speed / stiffness / dampingnumber / number / number1 / 240 / 28Controls animation time scaling and spring physics tuning.

ShimmerProgress

Progress bar with a light sweep running along the filled part. Accepts the Progress props.

PropTypeDefaultDescription
...propsOmit<ProgressProps, "indicatorChildren">-Progress props.

Notes

Always pass aria-label or aria-labelledby on Progress. The indicator fill computes translateX(-(100 - value)%), so normalize value to a 0..100 percentage.