Inspect

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

  1. Select an instance in Figma
  2. Open the Inspect tab
  3. In the Instance Recovery section, click Rebind
  4. The plugin finds all instances of this component on the page
  5. 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:

  1. Saves the current instance override tree
  2. Saves component property values
  3. Executes swapComponent — main component replacement
  4. Restores component properties
  5. 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:

  1. The plugin detaches a clone of the instance
  2. Creates a new Component from it
  3. Rebinds the original instance to the new Component