Community forum for knowledge and support

Updated last year

Changing variable values in a component

At a glance

The community member is asking if there is a way to change a variable in a component, as they need the background to be one color in certain instances and a different color in others, without unlinking it. The comments suggest two potential solutions: adding a DOM wrapper and applying a class to target the elements, and an alternative approach. However, there is no explicitly marked answer in the provided information.

Useful resources

Is there a way to change a variable in a component?
Certain instances I need the background to be a color #1 and others need to be color #2. Any way to do this without unlinking it?

R
2 comments

Add a dom wrapper and apply class to target the elements.

Check this out : https://youtu.be/qULN82RqAHw?si=Alg1CviyK75KvTrR

Add a reply
Sign up and join the conversation on Slack