Skip to content

Progress

The Progress component provides a flexible UI element for displaying progress indicators — either a measurable (determinate) bar or an ongoing (indeterminate) loading state.

Variations

Variants

The variant prop indicates the type of progress. It accepts default and indeterminate — whether the progress is measurable or ongoing without a known completion percentage.

States

The state prop reflects the current status of the operation. It accepts completed, paused, failed, processing, and default, controlling the visual feedback based on the progress state.

Colors

The color prop accepts a closed enum of palette themes — gray, blue, brown, cyan, green, forest-green, indigo, lime, mint, orange, pink, purple, red, violet, and yellow — matching the Tag theme set. The bar fill resolves to the corresponding design-system token (e.g. --cn-set-blue-primary-bg).

color and state are mutually exclusive — pass one or the other, never both. When color is set, the bar uses the chosen theme color while the status icon falls back to the neutral default; use hideIcon to remove the icon entirely. color works with both the default and indeterminate variants.

Sizes

The size prop adjusts the height of the progress bar. It accepts sm, md, and lg to fit different UI contexts.

Installation

import { Progress } from '@harnessio/ui/components'
//...
return (
<Progress value={0.75} state="processing" />
)