Skip to main content
Question

Swap Libraries and Component instances

  • January 15, 2023
  • 6 replies
  • 554 views

Dawood1

Swapping Libraries does not update instance variants.
Does anyone know if this is a bug, limitation, expected behavior or coming fix?

This topic has been closed for replies.

6 replies

Nikos_Christopoulos

Hello! I tested it with two siple buttons with variants. It works as expected. After swapping the libraries both variants of the instance are updated. Figma looks for any matching styles and components based on name only. Given that, make sure the names of the component variants in both libraries are the same! Here’s the documentation about swaping style and component libraries:

Figma Help Center

Hope this will help! 😀

image
image


Dawood1
  • Author
  • 2 replies
  • January 16, 2023

Thanks for taking the time. Yes, those update. I’m talking about the variants that exist in the INSTANCE of that not the master components.


Nikos_Christopoulos

In the previous reply i attached photos of the two libraries only. In a separate file i created 2 instances. One for each style variant. Both are updated after the library swap. Note that this doesn’t work for detached instances, so maybe that’s where the problem is.





Dawood1
  • Author
  • 2 replies
  • January 16, 2023

yeah because both instance variants are visible. Say you had
Button Instance (Variant A) - Swap library, Instance A updates. In the same instance if say you switch to Variant B, it will not be updated.


Nikos_Christopoulos

I tested it and it works fine. Would you mind sharing your main component (both libraries)?


  • 0 replies
  • February 15, 2023

This topic was automatically closed 30 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