Skip to main content

Custom content slot


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.

3 replies

Peter_Staniszewski

Corey_O_Brien
Peter_Staniszewski wrote:

 

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.


Ben_Smeets
  • Active Member
  • 40 replies
  • May 13, 2025

 

Corey_O_Brien wrote:
Peter_Staniszewski wrote:

 

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?


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