I think this can partially be achieved using overlays.
Basically, you’d create multiple instances of a component in different states, and then use them as overlays with a solid background so they can cover the contents beneath them.
Because these are overlays they won’t shift contents around them like with smart distribute.
Hey @thomas.enzler and @Kilobyte9335 I made a prototype of an accordion that can help. While I was working on it I discovered that it’s way easier if the accordion sections are always the same height.
If they are the same height you’ll be able to reuse the artboards, but if each section needs to have a unique height, you’ll need to adjust each overlay. It’s still doable, but it’ll require more tweaking.
Hi @dfmedrano and @Kilobyte9335
Thanks a lot for your replies. I will go through them as soon as I find time.
Meanwhile, I also designed a prototype in Sketch with accordions. It worked, but needed some workaround and it seemed to be a bit too overcomplicated.
Anyway, once I get there I let you know. Much appreciate your feedback!
Thomas