DocsBlog

Get Started

Components

Data Grid

Signals

Styling

Theming

↑↓Navigate
↵Select
EscClose
  • 1.8.0

  • Day

    Night

    Preview

    Switch mode
  • cerberus

    acheron

    elysium

    oceanus

Get Started
Components
Data Grid
Signals
Styling
Theming

Concepts

OverviewCompositionCerberus ContextTesting

Layout

Aspect RatioBleedBoxCenterContainerContainer QueryDividerFlexFloatGridGroupLink OverlayScrollableStackWrap

Components

AccordionAdmonitionAvatarButtonCarouselCheckboxClipboardCollapsibleComboboxConfirm ModalCTA ModalDate PickerDialogFieldFieldsetFile UploaderIconButtonInputLoading StatesMarqueeMenuNotificationsNumber InputPaginationPin InputPopoverProgress IndicatorsPrompt ModalRadioRatingSelectSliderSplit ButtonSwitchTableTabsTagTextTextareaToggleTooltip

Utilities

Client OnlyDownload TriggerEnvironmentFeature FlagsFocus TrapForFormat ByteFormat NumberFormat Relative TimeFormat Relative TimeFrameHighlightJSON Tree ViewLocalePortalPresenceShowSwapsplitPropsTheme

Progress Indicators

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

  • npm
  • source
  • recipe
  • Ark
View as Markdown
Open this page in Markdown
Anthropic
Open in Claude
Ask questions about this page
OpenAI
Open in ChatGPT
Ask questions about this page

Import

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

Progress Bar

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

Loading example...

Sizes

The ProgressBar component supports different sizes via the size prop.

Loading example...

Usage

To show different styles of the ProgressBar, use the usage prop.

Loading example...

States

The ProgressBar component supports both determinate and indeterminate states.

Loading example...

Circular Progress

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

Loading example...

Sizes

The CircularProgress component supports different sizes via the size prop.

Loading example...

Hide Value Text

The CircularProgress component allows you to hide the value text via the hideValueText prop.

Loading example...

Custom Label

You can customize the label displayed below the value by passing a custom React node to the label prop.

Loading example...

Guides

CSS Variables

Both ProgressBar and CircularProgress components expose CSS variables for easy customization.

Variable NameDescription
--percentThe percent value for the root.
--radiusThe border radius value.
--circumferenceThe circumference value for the root.
--offsetThe offset position of the element

Primitives

You can utilize the primitive components or style props to customize the progress components.

Progress Bar

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

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.

| now | | The current progress value. | | indeterminate | false | If the progress bar is in an indeterminate state. |

CircularProgress

NameDefaultDescription
hideValueTextfalseHides the value text in the center of the circle.
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.

Root

Props

PropTypeRequiredDefaultDescription
asChildbooleanfalseundefinedUse the provided child element as the default rendered element, combining their props and behavior.
defaultValuenumberfalse50The initial value of the progress bar when rendered.
Use when you don't need to control the value of the progress bar.
formatOptionsNumberFormatOptionsfalse{ style: "percent" }The options to use for formatting the value.
idstringfalseundefinedThe unique identifier of the machine.
idsPartial<{ root: string; track: string; label: string; circle: string }>falseundefinedThe ids of the elements in the progress bar. Useful for composition.
localestringfalse"en-US"The locale to use for formatting the value.
maxnumberfalse100The maximum allowed value of the progress bar.
minnumberfalse0The minimum allowed value of the progress bar.
onValueChange(details: ValueChangeDetails) => voidfalseundefinedCallback fired when the value changes.
orientation'horizontal' | 'vertical'false"horizontal"The orientation of the element.
translationsIntlTranslationsfalseundefinedThe localized messages to use.
valuenumberfalseundefinedThe controlled value of the progress bar.
labelstringfalseundefinedThe label of the progress bar.
sizeProgressSizefalseundefinedThe size of the progress bar.
usage'rounded' | 'circular' | 'filled'falseundefinedThe usage of the progress bar.

Data Attributes

AttributeDescription / Value
data-scopeprogress
data-partroot
data-max
data-valueThe value of the item
data-state
data-orientationThe orientation of the progress

Circle

Props

PropTypeRequiredDefaultDescription
asChildbooleanfalseundefinedUse the provided child element as the default rendered element, combining their props and behavior.

CircleRange

Props

PropTypeRequiredDefaultDescription
asChildbooleanfalseundefinedUse the provided child element as the default rendered element, combining their props and behavior.

Data Attributes

AttributeDescription / Value
data-scopeprogress
data-partcircle-range
data-state

CircleTrack

Props

PropTypeRequiredDefaultDescription
asChildbooleanfalseundefinedUse the provided child element as the default rendered element, combining their props and behavior.

Data Attributes

AttributeDescription / Value
data-scopeprogress
data-partcircle-track
data-orientationThe orientation of the circletrack

Label

Props

PropTypeRequiredDefaultDescription
asChildbooleanfalseundefinedUse the provided child element as the default rendered element, combining their props and behavior.

Data Attributes

AttributeDescription / Value
data-scopeprogress
data-partlabel
data-orientationThe orientation of the label

Range

Props

PropTypeRequiredDefaultDescription
asChildbooleanfalseundefinedUse the provided child element as the default rendered element, combining their props and behavior.

Data Attributes

AttributeDescription / Value
data-scopeprogress
data-partrange
data-orientationThe orientation of the range
data-state

RootProvider

Props

PropTypeRequiredDefaultDescription
valueUseProgressReturntrueundefinedundefined
asChildbooleanfalseundefinedUse the provided child element as the default rendered element, combining their props and behavior.

Track

Props

PropTypeRequiredDefaultDescription
asChildbooleanfalseundefinedUse the provided child element as the default rendered element, combining their props and behavior.

ValueText

Props

PropTypeRequiredDefaultDescription
asChildbooleanfalseundefinedUse the provided child element as the default rendered element, combining their props and behavior.

View

Props

PropTypeRequiredDefaultDescription
stateProgressStatetrueundefinedundefined
asChildbooleanfalseundefinedUse the provided child element as the default rendered element, combining their props and behavior.

Data Attributes

AttributeDescription / Value
data-scopeprogress
data-partview
data-state

Accessibility

Complies with the the progressbar role requirements..

On this page

  • Import
  • Progress Bar
    • Sizes
    • Usage
    • States
  • Circular Progress
    • Sizes
    • Hide Value Text
    • Custom Label
  • Guides
    • CSS Variables
  • Primitives
    • Progress Bar
    • Circular Progress
  • API
    • ProgressBar
    • CircularProgress
    • Root
      • Props
      • Data Attributes
    • Circle
      • Props
    • CircleRange
      • Props
      • Data Attributes
    • CircleTrack
      • Props
      • Data Attributes
    • Label
      • Props
      • Data Attributes
    • Range
      • Props
      • Data Attributes
    • RootProvider
      • Props
    • Track
      • Props
    • ValueText
      • Props
    • View
      • Props
      • Data Attributes
  • Accessibility
Edit this page on Github
Rounded
xs
sm
md
block
rounded
Determinate
Indeterminate

Not Started

25%Done
50%Done
75%Done
100%complete
0%Done
25%Done
50%Done
75%Done

Not Started

60%

Loading