Composants → bpm.colorpicker

bpm.colorpicker

Sélecteur de couleur (type color) avec affichage du code hex.

StableInteraction⏱ 2 min
#3b82f6
Python
bpm.colorpicker(label="Couleur", value="#3b82f6")
PropTypeDéfautRequisDescription
labelstringNonLabel au-dessus du sélecteur.
valuestring#000000NonCouleur au format hex (#RRGGBB).
onChange(value: string) => voidNonCallback au changement.
helpstring | nullNonTexte d’aide (infobulle).
disabledbooleanfalseNonDésactive le sélecteur.

Exemples

bpm.colorpicker()
bpm.colorpicker(label="Couleur de fond", value="#3b82f6")