Back to Plugins
Component Swapper

Component Swapper

Replaces the selected objects with similarly named objects from the library

Plugin Preview

Component Swapper preview

About this plugin

Replaces the selected objects with similarly named objects from the library.


For example, if you need to replace one icon set with another. Works within any selected object including components.


The objects should differ by the beginning of their names, while the rest of the name should remain the same.

For example: a_icon → b_icon or filled_icon → outlined_icon.


To use it, you need to:

  1. Enter the library ID in the settings (⚙️)
  2. Enter your access token
  3. Enter a name fragment of the objects to be replaced and a fragment of the new objects' names
  4. Select the objects you want to replace and run the plugin


How to find the library ID

In your library, click Share and copy the link.

The library ID is the part that comes after /design/ in the URL:

www.figma.com/design/{file-id}/unnecessary_part_of_the_link


How to find the access token

Read the article in Figma’s documentation

Plugin Details

Version2
CreatedApril 2, 2025
Last UpdatedApril 9, 2025
CategoryFile organization plugins
CreatorVictor Khodak
Stats0 installs, 0 likes
PricingFree

Technical Details

  • API:1.0.0
  • main:code.js
  • Document Access:dynamic-page
  • Editor Types:
    figma
  • Allowed Domains:
    • https://api.figma.com