ComponentsFeedback
Progress
How far along a task is, or a sliding bar while it's unknown.
How far along a task is, or a sliding bar while it's unknown.
<Progress value={60} aria-label="Upload" />The same component at all four levels. Pick the one that fits your project; they share tokens, so they mix.
npm i @junco/react @junco/tailwindimport { Progress } from "@junco/react";
<Progress value={done} max={total} aria-label="Sync progress" />Point aria-labelledby at the label, and use getValueLabel so screen readers hear the same count you show.
Leave out value while you can't measure progress yet. The bar slides instead.
Progress#valuemaxgetValueLabelsizecolorclassNames| Prop | Type | Default |
|---|---|---|
valueFrom 0 to max. Leave it out while the amount is unknown. | number | null | – |
maxThe value that means done. | number | 100 |
getValueLabelWhat screen readers say. Defaults to the percentage, e.g. "60%". | (value, max) => string | – |
sizeBar height. | "sm" | "md" | "lg" | "md" |
colorFill color. | "primary" | "success" | "warning" | "danger" | "primary" |
classNamesSlot overrides. | { root?: string; indicator?: string } | – |