Skip to main content

Insert content into component instance


Leo_Vogel

I would like to be able to create a component for something like a card or modal and then, insert any needed content into the body area of an instance of that card/modal component.

There is currently no easy way of handling this kind of flexible component content without some kind of plugin or complex nested component system.

This topic has been closed for comments

3 replies

Stephane_Popout

The way I know to do this is to use an instance swap
Big limitation is you can only insert instances of components as a instance swap…

Otherwise you have to detach your instance…

Figma Help Center

dennsi
  • Active Member
  • 256 replies
  • April 6, 2023

You could utilize slot components to achieve that.
If you need to have maximum flexibility you could include lots of slots and hide them. Unhide and instance swap them if needed.

See this example:

More info:


  • 0 replies
  • July 5, 2023

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.


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