Homelogologo
Sponsor

Progress

An indicator that displays the status of a task or a process.

Usage

The Progress component is used to show the completion status of a task. It can be displayed as a linear bar or a circular indicator.

import { Progress } from "@elemnts-ui/react"; <Progress defaultValue={40}> <Progress.Track> <Progress.Range /> </Progress.Track> </Progress>;

Examples

With Label

You can add a label and value text to provide more context about the progress.

Indeterminate

When the progress value is unknown, set value to null to show an indeterminate state.

API Reference

Progress

The root container for the progress component.

PropTypeDefault
valuenumber-
defaultValuenumber50
onValueChange(details: ValueChangeDetails) => void-
minnumber0
maxnumber100
orientation"horizontal" | "vertical""horizontal"
formatOptionsNumberFormatOptions{ style: "percent" }
localestring"en-US"
translationsIntlTranslations-
idstring-
idsPartial<{ root: string; track: string; label: string; circle: string }>-
asChildbooleanfalse

ProgressRootProvider

Advanced component for using a custom progress hook.

PropTypeDefault
valueUseProgressReturnrequired
asChildbooleanfalse

ProgressTrack

The container for the linear progress range.

PropTypeDefault
asChildbooleanfalse

ProgressRange

The visual indicator of the linear progress value.

PropTypeDefault
asChildbooleanfalse

ProgressCircle

The SVG container for circular progress.

PropTypeDefault
asChildbooleanfalse

ProgressCircleTrack

The background track for circular progress.

PropTypeDefault
asChildbooleanfalse

ProgressCircleRange

The visual indicator of the circular progress value.

PropTypeDefault
asChildbooleanfalse

ProgressLabel

The label for the progress component.

PropTypeDefault
asChildbooleanfalse

ProgressValueText

The text representation of the current progress value.

PropTypeDefault
asChildbooleanfalse

ProgressView

Renders its children based on the current progress state.

PropTypeDefault
stateProgressStaterequired
asChildbooleanfalse