How to pass a prop to set the backgroundColor dynamically through Plasmic UI?

Hi, i have a registered component that i want to pass a props to set the backgroundColor dynamically through plasmic but i can’t find how to do this in the doc, does someone know how ? thanks

You can’t quite bind dynamic values to css settings yet, but you can cheat a little… add a “style” html attribute to your element, right-click and bind to dynamic value, and use something like

{ backgroundColor: $props.backgroundColor }
1 Like

Thanks !