Skip to main content
Question

Make a component that accepts child elements


pjos

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.

This topic has been closed for comments

2 replies

pjos
  • Author
  • 4 replies
  • May 12, 2024

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

Gleb
  • Power Member
  • 4706 replies
  • May 12, 2024

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)


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