Skip to content
Harness Design System Harness Design System Harness Design System

Progress

beta

The Progress component provides a flexible UI element for displaying progress indicators.

Usage

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

Variants

The Progress component supports the variant prop to indicate the type of progress being displayed. It accepts default and indeterminate values. This defines whether the progress is measurable or ongoing without a known completion percentage.

States

The Progress component supports the state prop to reflect the current status of the operation. It accepts completed, paused, failed, processing, and default values. This controls the visual feedback based on the progress state.

Sizes

The Progress component supports the size prop to adjust the height of the progress bar. It accepts sm, md, and lg values. This allows customization of the component’s visual size to fit different UI contexts.

API Reference

Prop
Required
Default
Type
variantfalse'default''default' | 'indeterminate'
valuefalsenumber
statefalse'default''default' | 'processing' | 'completed' | 'paused' | 'failed'
sizefalse'md''sm' | 'md' | 'lg'
labelfalsestring
descriptionfalsestring
subtitlefalsestring
hidePercentagefalsefalseboolean
hideIconfalsefalseboolean
idfalsestring
classNamefalsestring