How to swap a component instance in Figma

Swap a component instance in Figma for a different component without redrawing it. Select the instance, open Swap instance, and pick a replacement.

Quick answer

To swap a component instance in Figma, select the instance on the canvas or in the Layers panel, click the component name at the top of the right sidebar to open the Swap instance menu, then choose a different component from the list. The instance changes to match the component you picked.

Steps at a glance

  1. Select the instance in the Layers panel.
  2. Click the component name at the top of the right sidebar.
  3. Review the components listed in the Swap instance menu.
  4. Pick the replacement component from the list.
  5. Check that the instance now shows the new component.

Interactive demo

Loading demo…

Summary

Swapping an instance replaces what an instance points to without redrawing it. Your instance keeps its place in the layout while it takes on a different component from the same file. It saves time when a design needs a different variation of a shared element.

Step-by-step guide

  1. Step 1

    Select the instance

    Find the instance you want to change in the Layers panel. Click its row, for example Rectangle 2, to select it on the canvas. Instances are marked with a diamond icon in the layer row.

  2. Step 2

    Open the instance swap menu

    Look at the top of the right sidebar. The name of the main component appears there, for example Rectangle 1, with a small arrow beside it. Click that name to open the swap menu.

  3. Step 3

    Pick Ellipse 1

    The Swap instance dialog opens with a Search in this library box and a list of components Created in this file. Click Ellipse 1 to replace the current component with it.

  4. Step 4

    Check the swapped instance

    The right sidebar now shows Ellipse 1 as the instance's component. The instance stays at the same position on the canvas, now using the new component.

Why this matters

You built a layout with one component, and now you need a different one in the same spot. Swapping the instance keeps its position and layer in place, so you avoid deleting it, pasting a new copy and lining it up again.

Frequently asked questions

  • Does swapping an instance change the main component?

    No. Swapping changes which component the instance points to. The other components in the file stay as they were.

  • Where do I start the swap?

    Select the instance, then click the component name at the top of the right sidebar to open the Swap instance dialog.

Create interactive demos like this one — free, no coding required.

Start for free →