Search...

Progress

Bootstrap 5 Progress

Bootstrap 5 Progress is a component that shows a user's progress in a process or an activity. The color, shape, and animation of this component can all be altered.

Bootstrap 5 Progress can be used to show the progress of an activity with delay, this increases the users' experience on your websites or web applications.

Rect Progress Default

Use a class of progress to integrate Contrast Bootstrap 5 into your project. The min property represents the progress bar's minimum value, while the max property represents the progress bar's maximum value.

Use a progress-bar class to build the real progress bar.

69%
HTML
html
<div class="progress-container">
<div class="progress-text progress-text-dark">69%</div>
<div class="progress progress-dark" role="progress" min="0" max="100" value="69">
<div class="progress-bar"></div>
</div>
</div>

Rect Progress Color Variants

You can customize the color of your progress bar with the Contrast Bootstrap 5 Progress. To do so, give your progress div a progress class and add the color code (e.g. primary, secondary, success, etc.) you desire for your progress bar to it.. For example <div class = "progress progress-secondary"></div>

10%
20%
70%
40%
90%
60%
HTML
html
<div class="progress-container">
<div class="progress-text progress-text-primary">20%</div>
<div class="progress progress-primary" role="progress" min="0" max="100" value="20">
<div class="progress-bar"></div>
</div>
</div>
<div class="progress-container">
<div class="progress-text progress-text-secondary">30%</div>
<div class="progress progress-secondary" role="progress" min="0" max="100" value="30">
<div class="progress-bar"></div>
</div>
</div>
<div class="progress-container">
<div class="progress-text progress-text-danger">80%</div>
<div class="progress progress-danger" role="progress" min="0" max="100" value="80">
<div class="progress-bar"></div>
</div>
</div>
<div class="progress-container">
<div class="progress-text progress-text-success">43%</div>
<div class="progress progress-success" role="progress" min="0" max="100" value="43">
<div class="progress-bar"></div>
</div>
</div>
<div class="progress-container">
<div class="progress-text progress-text-warning">72%</div>
<div class="progress progress-warning" role="progress" min="0" max="100" value="72">
<div class="progress-bar"></div>
</div>
</div>
<div class="progress-container">
<div class="progress-text progress-text-info">3%</div>
<div class="progress progress-info" role="progress" min="0" max="100" value="3">
<div class="progress-bar"></div>
</div>
</div>

Rect Progress bar with Height

Use the height property to customize your progress bar height.

45%
60%
80%
HTML
html
<div class="progress-container">
<div class="progress-text progress-text-dark">50%</div>
<div
class="progress progress-dark"
role="progress"
min="0"
max="100"
value="50"
height="40"
>
<div class="progress-bar"></div>
</div>
</div>
<div class="progress-container">
<div class="progress-text progress-text-dark">90%</div>
<div
class="progress progress-dark"
role="progress"
min="0"
max="100"
value="90"
height="5"
>
<div class="progress-bar"></div>
</div>
</div>
</div>
JavaScript
js
<script src="../build/cdbbootstrap.js"></script>
<script>
[].slice
.call(document.querySelectorAll('[role=progress]'))
.forEach(progress => {
new CDB.Progress(progress);
});
</script>

Build modern projects using Bootstrap 5 and Contrast

Trying to create components and pages for a web app or website from scratch while maintaining a modern User interface can be very tedious. This is why we created Contrast, to help drastically reduce the amount of time we spend doing that. so we can focus on building some other aspects of the project.

Contrast Bootstrap PRO consists of a Premium UI Kit Library featuring over 10000+ component variants. Which even comes bundled together with its own admin template comprising of 5 admin dashboards and 23+ additional admin and multipurpose pages for building almost any type of website or web app.
See a demo and learn more about Contrast Bootstrap Pro by clicking here.