Make a component that accepts child elements

Finding this incredibly difficult to do.


I just want to make a component that I can put other elements into. Just a basic frame like in picture attached that I can then add an arbitrary set of elements to. Please help.

1 Like

Is this really how to do it?

  1. Create a slot component
  2. Put the slot component in your component
  3. Apply an “instance swap” property to the slot component
  4. Create another component, what you want to put in the frame component
  5. Create an instance of your frame component and swap the slot with the component from step 4

There is no way to make slots in Figma without some workarounds. Vote here: Add a "slot" functionality to components or Fully Editable Component Instances (someone needs to merge these)

1 Like