Skip to main content
Answer

API to set description of Variable

  • June 12, 2024
  • 2 replies
  • 149 views

Jason_Burns

Looking for a way to set the description of a Variable without recreating the variable (which would break existing links to the variable, or require remapping all links to the new variable).

Best answer by tank666

The description property of the Variable object has a setter, so just change the value of this property.

figma.com
This topic has been closed for replies.

2 replies

tank666
  • Answer
  • June 12, 2024

The description property of the Variable object has a setter, so just change the value of this property.

figma.com

Jason_Burns

Yea, my bad… appreciate the timely response. Was trying to apply an object as the description value, forgetting I need to set the value as a string.