Progress components are built with two HTML elements, some CSS to set the width, and a few attributes. We don’t use the HTML5
element, ensuring you can stack progress bars, animate them, and place text labels over them.
- We use the
.progressas a wrapper to indicate the max value of the progress bar.
- We use the inner
.progress-barto indicate the progress so far.
.progress-barrequires an inline style, utility class, or custom CSS to set their width.
.progress-baralso requires some
ariaattributes to make it accessible.
Put that all together, and you have the following examples.