Skip to main content
Question

Figma default variant


Hi,

When i create and instance of default variant like following

figma.importComponentSetByKeyAsync(key).then((res) => {
                const variant = res.defaultVariant as ComponentNode;
                var comp = variant.createInstance();
               
                   
              })

This does not create the exact component of the default variant, it creates different component instance every time by defaultVariant.

What will be the solution for the same?

If i click on plugin button thumbnail then it create buttonwith heart and if another user will create from his account then it create simple button from component set.

What could be a reason behind it?

Is there any key issue that key varying every time for new user in library or be the same for everyone?

Thanks

This topic has been closed for replies.

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