Skip to content
Playground

Progress

A determinate or indeterminate progress indicator.

A determinate or indeterminate progress indicator.

primary
success
information
TSX
import { Progress } from "@zentara-co/zenos-ui";

Choose a semantic tone that matches the operation’s status. primary is neutral progress, success indicates a positive completion path, information supports informational work, and danger signals a failing or risky operation.

primary
success
information
danger

Size changes track thickness without changing the measured value.

sm

md

lg

Pass a numeric value when the application knows completion. Omit value, or pass null, when duration cannot be estimated.

Determinate

Indeterminate

Compose the parts when a visible label and formatted value belong beside the track. Connect the label to the progressbar with aria-labelledby.

Assets scanned18 of 24

Use className on Progress.Root for layout and width. Override the track and indicator with semantic tokens on Progress.Track and Progress.Indicator; custom classes merge after the built-in variant fill, so accent backgrounds replace variant colors when both are set. Style Progress.Label and Progress.Value for tinted headers without changing bar behavior.

For a one-line bar, <Progress className="max-w-md" /> still accepts root className. For full control, compose Progress.Root, Progress.Track, and Progress.Indicator explicitly.

Campaign reach72%

Variants

primarysuccessinformationdanger

Sizes

smmdlg
Progress.Root
Progress.Track
Progress.Indicator
Progress.Label
Progress.Value

API

PropTypeDefaultDescription
value number | null null Current value; null is indeterminate.
max number 100 Maximum value.
variant ProgressVariant primary Indicator color.
size sm | md | lg md Track thickness.
format (value: number, maximum: number) => ReactNode — Formats the visible Progress.Value content.
Indicator.value number — Overrides the root value for a custom indicator.
Root.className string — Layout and width on the progressbar root.
Track.className string — Merged after default track styles; override fill and height context.
Indicator.className string — Merged after variant indicator color; use semantic tokens to replace the default fill.
Label.className / Value.className string — Typography and color for compound label and value text.
native props React.HTMLAttributes<HTMLDivElement> — Forwards native attributes, events, aria-*, data-*, className, style, and ref.

Unless narrowed above, each DOM-rendering part also accepts its underlying native or Base UI props, including className, style, aria-*, and data-*.

Progress exposes role="progressbar" with minimum, maximum, and current value for determinate work. Indeterminate progress omits aria-valuenow. Give every progressbar an accessible name with aria-label or aria-labelledby; the visual Progress.Label is not connected automatically. Announce completion separately when the surrounding workflow needs a status update.