Composants → bpm.highlightBox

bpm.highlightBox

Carte avec barre latérale (numéro + label) et contenu structuré (titre, moment, RTB, cible).

StableMise en page⏱ 2 min
1DAILY

Tranché hyperprotéiné

Moment : base quotidienne
RTB : Point 1 · Point 2
Cible : Cible exemple
Python
bpm.highlightBox(label="DAILY", title="Tranché hyperprotéiné", moment_description="base quotidienne")
PropTypeDéfautRequisDescription
valuenumber—OuiNuméro affiché dans la barre gauche.
labelstring—OuiTexte sous le numéro (ex. "DAILY").
titlestring—OuiTitre principal du contenu.
momentDescriptionstring | null—NonTexte affiché après le libellé "Moment :" (en italique, gris).
rtbPointsstring[] | null—NonPoints RTB (affichés séparés par ·).
targetPointsstring | string[] | null—NonPoints Cible (chaîne ou liste).
barColorstring | null#212121NonCouleur de la barre latérale (hex, rgb ou nom CSS).
classNamestring—NonClasses CSS additionnelles.

Exemples

bpm.highlightBox(value=1, label="DAILY", title="Produit phare")
bpm.highlightBox(value=2, label="WEEKLY", title="Objectif", moment_description="ce mois", bar_color="#048dc3")