Figma Support Forum

Suggestion: Show-hide Interaction

PROBLEM: There is no way to create an accordion or collapsible menu without endless duplicate pages

FIX: If you could show/hide objects, groups, components, you could easily create a collapsible section, which if used within an auto layout with fill container would resize nicely.

There are so many uses for this kind of behaviour. Whole components (like a left nav) could be setup with default behaviour that would just work where they were placed, without the need for complex prototyping.

Not 100% sure but interactive components might help here. Abstracts a lot of the prototyping from the page design to the components themselves.

Good suggestion @AndrewSpencer I tried it without success. The sections maintain their initial layout with respect to the thing above or below them. It could just be a bug with variants at this point because it behaves correctly in the design view. It just goes wonky in the prototyping view.

Interactive components is going to support this, but doesn’t currently: Support Auto Layout in Interactive Components - #10 by nikolasklein

1 Like