set_component_property_references
Links a child node's property to a component property, enabling dynamic updates to visibility, text, or component selection within a Figma component.
Instructions
Set componentPropertyReferences on a sublayer within a Component. Links a child node's property to an existing component property. Keys: 'visible'|'characters'|'mainComponent'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeId | Yes | The sublayer node ID (e.g. a child Instance or Text node) | |
| references | Yes | Object mapping property keys to component property names, e.g. { mainComponent: 'icon#10:0' } |