ProgressBar
Metrics & Status

ProgressBar

Progress track for tasks or batches, with optional labels. Use Meter instead for quota readouts.

Props

ProgressBar extends HTMLAttributes<HTMLDivElement>. Renders as role="progressbar".

ProgressBarProps props
PropTypeDefaultDescription
valuenumber0Fill percentage, 0–100. Ignored when indeterminate.
toneProgressTone"primary""primary" | "ok" | "warn" | "err".
indeterminateboolean—Sliding shimmer for unknown durations.
labelReactNode—Right-aligned mono label above the track (e.g. '64%', '312 / 488').
labelLeftReactNode—Left-aligned label above the track (e.g. 'Uploading files…').

Examples

Tone variants

ProgressBar tones

Indeterminate

ProgressBar indeterminate

With labels

ProgressBar with labels
ImportTSX
import { ProgressBar } from "@solarius/onset";
import type { ProgressBarProps, ProgressTone } from "@solarius/onset";