Build faster with Premium Chakra UI Components 💎

Learn more
Skip to Content
DocsPlaygroundGuidesBlog
Sponsor

Progress

Used to display the progress status for a task.

SourceStorybookRecipeArk

Setup

If you don't already have the snippet, run the following command to add the progress snippet

chakra snippet add progress

The snippet includes a closed component composition for the Progress component.

Usage

import { ProgressBar, ProgressRoot } from "@/components/ui/progress"
<ProgressRoot>
  <ProgressLabel />
  <ProgressValueText />
  <ProgressBar />
</ProgressRoot>

Examples

Sizes

Use the size prop to change the size of the progress bar.

Variants

Use the variant prop to change the visual style of the progress bar.

Colors

Use the colorPalette prop to change the color of the progress bar.

gray

red

green

blue

teal

pink

purple

cyan

orange

yellow

Inline Label

Compose the ProgressLabel and ProgressValueText components to create an inline label for the progress bar.

40%

Info tip

Use the info prop to add a tooltip to the progress bar.

Indeterminate

Set the value to null to show an indeterminate progress bar.

Stripes

Set the striped prop to true to add stripes to the progress bar.

Animated Stripes

Set the animated prop to true to animate the stripes.

Props

Root

PropDefaultType
max '100'
number

The maximum allowed value of the progress bar.

min '0'
number

The minimum allowed value of the progress bar.

orientation '\'horizontal\''
Orientation

The orientation of the element.

value '50'
number

The current value of the progress bar.

colorPalette 'gray'
'gray' | 'red' | 'orange' | 'yellow' | 'green' | 'teal' | 'blue' | 'cyan' | 'purple' | 'pink' | 'accent'

The color palette of the component

variant 'outline'
'outline' | 'subtle'

The variant of the component

shape 'rounded'
'square' | 'rounded' | 'pill'

The shape of the component

size 'md'
'xs' | 'sm' | 'md' | 'lg'

The size of the component

asChild
boolean

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

For more details, read our Composition guide.
ids
Partial<{ root: string; track: string; label: string; circle: string }>

The ids of the elements in the progress bar. Useful for composition.

translations
IntlTranslations

The localized messages to use.

striped
'true' | 'false'

The striped of the component

animated
'true' | 'false'

The animated of the component

as
React.ElementType

The underlying element to render.

unstyled
boolean

Whether to remove the component's style.

Previous

Progress Circle

Next

Radio Card