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.
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 )
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 )