Progress Bar

View in Lexicon

Progress bar indicates the percentage completed of a task.

installyarn add @clayui/progress-bar
versionNPM Version
useimport ProgressBar from '@clayui/progress-bar';

Colors

Add progress-danger, progress-info, progress-success, or progress-warning to progress-group or progress to provide visual feedback for different progress states. Color a block of text or icon by wrapping it with progress-group-feedback.

Using the color classes will set the background-color on progress-bar, no need to use Bootstrap 4 background utility classes.
25%
25%
50%
75%
100%

Snippet

Group

60%

Snippet

Sizes

We only set a height value on the .progress, so if you change that value the inner .progress-bar will automatically resize accordingly.

25%
60%
45%
60%

Snippet

Groups

Addon

Place an addon on either side of a progress component with progress-group and progress-group-addon.

30%
70%

Snippet

Stacked

Add progress-group-stacked to progress-group stack the addons and progress component.

60% Completed

Snippet

Multiple Progress Bars

If you need multiple progress bars, use Bootstrap 4’s background utilities, bg-primary, bg-success, bg-info, bg-warning, and bg-danger on progress-bar.

25%
25%
25%
50%
50%
33%
33%
45%
45%
10%
10%
10%
10%
10%
10%
10%

Snippet

Labels

Add labels to your progress bars by placing text within the .progress-bar.

25%

Snippet

Striped

Add .progress-bar-striped to any .progress-bar to apply a stripe via CSS gradient over the progress bar’s background color.

Snippet

Animated Stripes

The striped gradient can also be animated. Add .progress-bar-animated to .progress-bar to animate the stripes right to left via CSS3 animations.

Snippet

Edit this page on GitHub

Contributors

Matuzalém Teles

Last edited May 12, 2025 at 7:56:02 PM