Progress Indicators

Progress indicators are used to show the progress of a task.

import { ProgressBar, CircularProgress } from '@cerberus/react'

Usage

Progress Bar

The ProgressBar component is used to display a linear progress indicator. It can be used in both determinate and indeterminate states.

Rounded
Block

Circular Progress

The CircularProgress component is used to display a circular progress indicator. It will scale to the size of its container.

25%
50%
75%
100%

Sizes

The CircularProgress component supports different sizes via the size prop.

25%
50%
75%
100%

Progress Bar Primitives

You can utilize the primitive components or the css prop to customize the progress bar.

ComponentDescription
ProgressBarRootThe container for the ProgressBar parts
ProgressBarBarThe percentage bar of the amount

Circular Progress Primitives

You can utilize the primitive components or the css prop to customize the circular progress.

ComponentDescription
CircularProgressRootThe context provider for the CircularProgress parts
CircularProgressInfoGroupThe container for the text parts
CircularProgressLabelThe descriptive text below the value
CircularProgressValueTextThe value of the progress, displayed in the center circle
CircularProgressCircleThe container of the progress
CircularProgressCircleTrackThe track of the progress
CircularProgressCircleRangeThe range of the progress

API

ProgressBar

NameDefaultDescription
idThe id of the CircularProgress.
labelA description of what the progress bar is for.
sizemdThe size of the progress bar.
usageroundedThe style of the progress bar.
nowThe current progress value.
indeterminatefalseIf the progress bar is in an indeterminate state.

CircularProgress

NameDefaultDescription
labelA description of what the progress bar is for.
sizemdThe size of the circular progress.
usagefilledThe fill style of the center circle used for the bg.

The CircularProgress component also accepts all the props of the CircularProgressRoot primitive props