Indeterminate progress bar in WordPress
A thin bar where a segment slides continuously, for a load of unknown duration.
Here is an excerpt of this component's code in WordPress. The full code is free for members, ready to copy into your project.
This component also comes in
The code in WordPress
<?php
/**
* Plugin Name: Forge, Barre de progression indéterminée
* Description: Une fine barre où un segment glisse en continu, pour un chargement dont la durée est inconnue. Ajoute la composition « Barre de progression indéterminée » à l'éditeur de blocs.
* Version: 1.0.0
* Requires at least: 6.6
* Requires PHP: 8.1
* Author: Forge
* License: GPL-2.0-or-later
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
* Text Domain: forge-loader-barre-indeterminee
*<!-- wp:html -->
<div class="bar" role="status">
<span>Import du fichier en cours</span>
<span class="bar__track" aria-hidden="true"><span></span></span>
</div>
<!-- /wp:html -->:root {
--bar-track: #ccfbf1;
--bar-fill: #0f766e;
--bar-text: #042f2e;
--demo-loader-barre-indeterminee-bg: #f0fdfa;
--demo-loader-barre-indeterminee-text: #042f2e;
}
@media (prefers-color-scheme: dark) {
:root.forge-follows-system:not([data-theme="light"]) {
--bar-track: #134e4a;
--bar-fill: #5eead4;Free component: copy it freely, including for commercial projects.
Other loaders components in WordPress
Loaders components in WordPress
Bouncing dots
FreeThree dots bouncing one after another, for a short wait or a message being typed.
- Tailwind
- React
- CSS
- WordPress

A button's state while a form is submitting: a small spinner and a "Sending" label.
- Tailwind
- React
- CSS
- WordPress

A spinning ring with a colored segment, alongside a loading text.
- Tailwind
- React
- CSS
- WordPress