I’ve been experimenting with local variables following some online guides. I encountered an issue that I believe you might be able to help me resolve. I’m using local variables to control the visibility of elements based on the device configuration (tablet, mobile, or desktop).
When I link this variable to an inner frame, such as a hamburger icon, it displays correctly for mobile and tablet but not for desktop.
If I attempt to add interaction behavior to the component, such as changing the variant based on clicking or tapping the hamburger icon, I face a challenge. Since this layer is affected by a variable, I can’t add interaction directly within the component. I can’t create the component so generic that all instances, whether desktop, mobile, or tablet, follow the same behavior. Instead, I have to apply the interaction for each instance individually.
Is there another approach to achieve this general behavior while still using local variables to control component visibility?
Regards