bpm.loadingbar
Barre de chargement : sweep, blocks, iso, stacked, arc, dots. Variant iso peut être déterminé (value 0–100) ou indéterminé.
sweep
default
Python
bpm.loadingbar(variant="sweep", size="default")| Prop | Type | Défaut | Requis | Description |
|---|---|---|---|---|
variant | 'sweep' | 'blocks' | 'iso' | 'stacked' | 'arc' | 'dots' | 'sweep' | Non | Style de la barre (sweep = balayage, blocks = segments, iso = barre linéaire, etc.). |
value | number | — | Non | Pour iso : 0–100 = barre déterminée ; absent = indéterminé. |
size | 'thin' | 'default' | 'thick' | 'default' | Non | Hauteur : thin (6px), default (8px), thick (12px). |
animated | boolean | true | Non | Désactive l'animation si false (screenshots, prefers-reduced-motion). |
className | string | — | Non | Classes CSS additionnelles. |
Exemples
bpm.loadingbar(variant="sweep")bpm.loadingbar(variant="iso", value=45)bpm.loadingbar(variant="dots", size="thick")bpm.loadingbar(variant="blocks", animated=False)