Ring loading indicator in WordPress
A spinning ring with a colored segment, alongside a loading text.
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, Indicateur de chargement en anneau
* Description: Un anneau qui tourne avec un segment coloré, accompagné d'un texte de chargement. Ajoute la composition « Indicateur de chargement en anneau » à 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-anneau
*<!-- wp:html -->
<div class="ring" role="status">
<span class="ring__spinner" aria-hidden="true"></span>
<span>Chargement des factures…</span>
</div>
<!-- /wp:html -->:root {
--ring-track: #dbe6ff;
--ring-fill: #1d4ed8;
--ring-text: #0b1b3a;
--demo-loader-anneau-bg: #f8faff;
--demo-loader-anneau-text: #0b1b3a;
}
@media (prefers-color-scheme: dark) {
:root.forge-follows-system:not([data-theme="light"]) {
--ring-track: #1a2a52;
--ring-fill: #93b4ff;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 thin bar where a segment slides continuously, for a load of unknown duration.
- Tailwind
- React
- CSS
- WordPress