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
valuenumberOuiNuméro affiché dans la barre gauche.
labelstringOuiTexte sous le numéro (ex. "DAILY").
titlestringOuiTitre principal du contenu.
momentDescriptionstring | nullNonTexte affiché après le libellé "Moment :" (en italique, gris).
rtbPointsstring[] | nullNonPoints RTB (affichés séparés par ·).
targetPointsstring | string[] | nullNonPoints Cible (chaîne ou liste).
barColorstring | null#212121NonCouleur de la barre latérale (hex, rgb ou nom CSS).

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")