Can't assign variable to instance property

I’m trying to assign a variable to a property in an instance of a component. The variable and property names are identical, but it seems the menu icon is completely missing from Figma. Is this feature no longer available? My Figma app is up to date.

Variable:
image

Instance property:
image

According to Figma’s support pages, an icon should be visible next to the property:

1 Like

Hey Teri, Boolean, number, and string variables can be assigned to component instances with variant properties. Could you share a screen recording with us what you’re seeing on your end?

I just heard back from Figma support — apparently this is a known limitation:

  • Layer boolean properties cannot be attached to boolean variables
  • Variant booleans CAN be attached to boolean variables

Instead of having a layer toggle on/off, I had to create 2 variants, one with the layer showing and one with it hidden.

2 Likes

Unless I am missing something, I think you could also attach the visibility of a layer to the boolean variable. If you scroll down on the right side panel to layer, you should find an eye (visibility) icon. Double clicking on it would open a list of boolean variables you could choose from.

You could also do the same for a string variable. Setting the value to “FALSE” even as a string has the same effect as a boolean set to false.

A known and ignored limitation, as usual with Figma