Rebind
Rebind feature in SXL Studio: replacing an instance's main component while preserving overrides and properties.
What is Rebind
Rebind (Instance Recovery) replaces the main component of an instance through the Figma API. Unlike Swap (which changes variable/style bindings), Rebind completely changes the source component — while preserving the override tree and component properties.
When you need Rebind
- An instance shows "Broken" — its main component is deleted or inaccessible
- A component has moved to another library, and you need to redirect instances to the new source
- You want to replace one component with another while keeping all user customizations (text, colors, nested instances)
How it works
- Select an instance in Figma
- Open the Inspect tab
- In the Instance Recovery section, click Rebind
- The plugin finds all instances of this component on the page
- A modal opens with options:
- Enter Component ID — paste the target component's ID
- Enter Component Key — paste the component's long key
- Pick Target — select a component directly on the Figma canvas
- Create Component — create a new component from the current instance and bind it
Rebind process
When performing Rebind, the plugin:
- Saves the current instance override tree
- Saves component property values
- Executes
swapComponent— main component replacement - Restores component properties
- Restores the override tree
This means all your instance edits (texts, colors, layer visibility) are preserved after rebind.
Rebind: replacing the main component while preserving overrides
Rebind All
For broken instances within the selected tree, a Rebind All button is available — it recovers all "broken" child instances in a single operation.
Create Component
If the target component doesn't exist, you can create one from the current instance:
- The plugin detaches a clone of the instance
- Creates a new Component from it
- Rebinds the original instance to the new Component
Related sections
- Inspect Overview — general tab structure
- Swap — rebinding variables and styles
- Composition & Drift — tracking discrepancies