Skip to main content
Question

Auto Layout Stack

  • January 7, 2022
  • 2 replies
  • 1273 views

Matthew_Young

I’ve created several components and use auto-layout to stack elements.

For example, a Radio Button Group where there’s a field label followed by a group of two radio buttons with an auto layout spacing of 16px between them.

My intention is that consumers of this component can copy one of the radio buttons within the auto-layout group and paste it so that there are now three radio buttons.

However, when I try this, it pastes the radio button outside the component - it doesn’t add it to the auto-layout stack.

I’ve probably described that really unclearly but hopefully someone understands! If not, I can provide a few screen grabs….

Thanks,
Matt

This topic has been closed for comments

2 replies

Klesus
  • 237 replies
  • January 8, 2022

Sounds to me like you’re trying to paste into an instance, which is not possible.
If that’s the case, what you can do is paste a couple of them inside the component and (un)hide them as necessary.
Or if your component is supposed to have a maximum of three radio buttons why not just make a component variant?


  • 0 replies
  • February 7, 2022

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.


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