Skip to main content

Whey I design a dialog component with a content slot, I’ve to create a content component to drag into. Doing this for several slots will declutter my canvas.


It would be great if you could add custom content directly within a “slot”, without the need to create a component for it.


… Like a dedicated slot where you can add content directly by clicking on it.

You can do that with Component properties - Instance swap: https://help.figma.com/hc/en-us/articles/5579474826519-Explore-component-properties#h_01G2Q5FYN2ADEDQ3ZSB1KKY8Z0


 

That isn’t the same thing.

 

For instance, I have a modal and I want it to be essentially the same layout but I want the interior contents to be different.  I don’t have a lot of options today to make a common layout but put content into that layout.  I can use swap components now, but that still means I need to maintain a bunch of components separate from my modal component and then swap them in when needed in a particular screen.  Why can’t it be like code where I can make my screen but put my content inside of a slot, inside of the parent?  In this way, I can create my modal with my content but inherit the frame and structure from the main component.  Maintaining a hundred components to swap in and out of another component is a nighmare.


 

 

That isn’t the same thing.

 

For instance, I have a modal and I want it to be essentially the same layout but I want the interior contents to be different.  I don’t have a lot of options today to make a common layout but put content into that layout.  I can use swap components now, but that still means I need to maintain a bunch of components separate from my modal component and then swap them in when needed in a particular screen.  Why can’t it be like code where I can make my screen but put my content inside of a slot, inside of the parent?  In this way, I can create my modal with my content but inherit the frame and structure from the main component.  Maintaining a hundred components to swap in and out of another component is a nighmare.

I read this a couple of times, but not sure if I misunderstand what you need, but this reads as being literally the instance swap isn’t it?


Reply