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
labelstring—NonLabel au-dessus du sélecteur.
valuestring#000000NonCouleur au format hex (#RRGGBB).
onChange(value: string) => void—NonCallback au changement.
helpstring | null—NonTexte d’aide (infobulle).
disabledbooleanfalseNonDésactive le sélecteur.

Exemples

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