Skip to main content
Question

How to combine local variables in a file with components from a seperate design system library

  • June 4, 2024
  • 1 reply
  • 319 views

MoniqueD

Hi,

I’ve been playing around with variables and I’ve set up a text string collection for populating dropdowns. However, setting this up right, I had to detach the component from our design system library, because I needed to connect the collections to the layer in the component itself. As I understand, this is not possible on an instance level.

How do you deal with this? Obviously, detaching is not the way I want to go, since I miss the updates on the component.

This topic has been closed for replies.

1 reply

  • Figmate
  • 2024 replies
  • June 6, 2024

Hi there, Thanks for reaching out about this!

I’m not entirely sure how you plan to attach the variable to the instance, but if you need to attach local variables to a specific instance in your file, you might want to try override the instance.

Upon testing, I was able to override an instance by attaching a local string variable and still receive updates from the library for the component while retaining the override.

You can check out the supported properties for overrides to see how it works here: Apply overrides to instances

I hope this clarifies things a bit for you. If anyone else in our community has further workarounds or suggestions, feel free to share them here.

Thanks again for reaching out!


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