--- url: "https://web.dev/articles/building/a-loading-bar-component" titulek: "Building a loading bar component | Articles | web.dev" h1: "Building a loading bar component Stay organized with collections Save and categorize content based on your preferences." popis: "A foundational overview of how to build a color adaptive and accessible loading bar with the `` element." jazyk: "en" kanonicka: "https://web.dev/articles/building/a-loading-bar-component" drobecky: ["Articles", "Building a loading bar component"] zdroj: "live" wayback_snapshot: "" stazeno: "2026-09-14 02:40:15" znaku: 18252 slov: 2681 kodovani: "iso-8859-2" sha256: "818fb9b7c47dacd31c0dd143bd9e649988e7a653b50ceb20a504922d6bd54030" --- Building a loading bar component Stay organized with collections Save and categorize content based on your preferences. A foundational overview of how to build a color adaptive and accessible loading bar with the `` element. Adam Argyle In this post I want to share thinking on how to build a color adaptive and accessible loading bar with the `` element. [Try the demo](https://gui-challenges.web.app/progress/dist/) and [view the source](https://github.com/argyleink/gui-challenges)! Light and dark, indeterminate, increasing, and completion demoed on Chrome. If you prefer video, here's a YouTube version of this post: Overview The [``](https://developer.mozilla.org/docs/Web/HTML/Element/progress) element provides visual and audible feedback to users about completion. This visual feedback is valuable for scenarios such as: progress through a form, displaying downloading or uploading information, or even showing that the progress amount is unknown but work is still active. This [GUI Challenge](https://github.com/argyleink/gui-challenges) worked with the existing HTML `` element to save some effort in accessibility. The colors and layouts push the limits of customization for the built-in element, to modernize the component and have it fit better within design systems. Demo shown across Firefox, Safari, iOS Safari, Chrome, and Android Chrome in light and dark schemes. Markup I chose to wrap the `` element in a [`