Changing color/text of Momentary button based on indicator value

I’ve seen a couple of previous posts that are close, but nothing that has got me quite there yet, but if I want to change the state, the color/text of a Momentary button, based on an indicator value? What is the best way, or how to use the Style Customizer to do? I’d rather not introduce another component to solve (multi state indicator), but could do that if I had to. Thanks all.

I add a custom property called ‘State’ (because I’m creative that way) to the button, then use that to drive the style customizer.

2 Likes

Yeah, learning as I go, that got me off on the right path to ultimately get what I needed…