Skip to main content
Question

How to turn a stroke into a boolean property of my component?

  • May 31, 2025
  • 1 reply
  • 25 views

Pierre Trochu

Hello,

 

i’ve created a simple button, with text, padding and autolayout. I’ve turned it into a component. I now want to make the stroke a property for all the variants, that i can turn on and off with a boolean.

However, there is no diamond icon next to the stroke in the right hand panel, so i cannot figure out how to tie it to a prooperty. Is it because the stroke is not a nested item? .

1 reply

Derek_Avila_P

You can add a rectangle shape to your autolayout frame, set its position to “Ignore autolayout”, manually resize it to the entire autolayout size (you could also use the plugin “Resize to Frame” → “Both” and set its constrains to “Left+Right” and “Top+Bottom” then asign this layer visibility to a boolean property.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings