Complete the code to set a text property in a Figma component.
component.set[1]('Button Label', 'Submit')
In Figma plugin API, textProperty is used to set text properties on components.
Complete the code to toggle a boolean property named 'isActive' on a component instance.
instance.set[1]('isActive', true)
The correct method to set a boolean property in Figma is booleanProperty.
Fix the error in the code to swap an instance's component to a new variant.
instance.component = [1]To swap an instance's component, assign the component object itself, here newVariantComponent.
Fill both blanks to set a text property and toggle a boolean property on a component instance.
instance.set[1]('label', 'Save'); instance.set[2]('enabled', false)
Use textProperty to set text and booleanProperty to set boolean values on instances.
Fill all three blanks to swap an instance's component, set a text property, and toggle a boolean property.
instance.component = [1]; instance.set[2]('title', 'Dashboard'); instance.set[3]('visible', true)
Assign the new component object to instance.component, then use textProperty and booleanProperty to set properties.