Skip to main content

I want to create a single component with a “device” property. And if device is desktop, the auto layout direction is horizontal. If the device is mobile, the direction is vertical. Is that possible?

It would be useful to extend this generally to being able to set Auto-layout using a component property.