Skip to main content

Imagine a component with a list of, let’s say, 5 buttons. Each button can be visible or invisible via a toggle/boolean property. I was wondering how I can build the component so that you can easily add or remove buttons to the instance without changing the number of buttons in the main component.

I’d do sets for that. Create few components, each to have numbers of buttons you want. Wire them up using instance swap prop.


Thank you Pavel 🙏