I’m using a slot in a component so I can swap it out with another component instance (since it’s impossible to add anything inside a component instance).
Seems like a viable workaround. The problem is, the component instance does not show up in the list when I search for it under “Swap instance” and I have no idea why.
Also, I noticed that sometimes the option to select “Local components” (to show only those results, instead of a library) is missing. Again, no idea why.
In other files it looks like this:
Any help is appreciated.
Hi @Dustin_Hansen2
Regarding Local component not showing up
Local component option only appear when there is at least one component in the entire file. Taking a deeper look at your screenshot it seems that your file has only one page (Page 1) with 2 component instance inside. (instance have a losange before their name while main component have a diamond: ). That’s why you cannot see the option Local component
“No result”
Since you don’t have any component in your file, it means that Tooltip.multiple-errors
main component isn’t located in this file. Are you sure you added all the library needed for your project? ( Enable a library in a design file )
Hope it helped
Hi @Haroll , thanks for the reply.
My intent was to swap one instance for another instance.
I realize now that it doesn’t work that way - you can only swap one instance for another component.
(Seems a little counter-intuitive to me, and feels like a bug or missing feature, but I think I get it now.)
thanks again.