On this page
Quick steps
Select the instance
Select the instance you want to replace. For an icon inside a button, select the nested icon instance.
Open the Instance menu
Click the component name at the top of the right sidebar to open the Instance menu.
Pick the replacement
Browse or search for the component you want and click it. The instance swaps in place.
Check text overrides
Confirm your custom text came across. Only text overrides are kept, and they carry over most reliably when text layers have unique names.
Four ways to swap an instance
- Instance menu: click the component name in the right sidebar and choose a new one.
- Right-click → Swap instance: lists only components in the same frame or hierarchy, so it's quick for sibling icons.
- Quick insert: select the instance, press ⇧I / Shift+I, and choose the replacement.
- Drag-swap: hold ⌥ (Mac) or Alt (Windows) and drag a component from Assets onto the instance. For a nested instance, hold ⌥⌘ / Alt+Ctrl. Release the mouse before the key.
Right-click → Swap instance is the most limited of the four, because it only offers components already in the same frame or hierarchy. If the icon you want isn't listed, use the Instance menu or Quick insert, which aren't limited to the same frame.
How to change an icon in a Figma component
Select the icon instance inside the button instance and swap it with any of the methods above. If you do this often, set it up properly: add an instance swap property to the main component so the icon picker sits right on the button in the sidebar. See component properties. To add a component in the first place, see how to create a component in Figma.
Shortcuts for swapping, resetting and going to main
| Action | Mac | Windows |
|---|---|---|
| Quick insert (swap an instance) | Mac⇧I | WindowsShiftI |
| Go to main component | Mac⌃⌥⌘K | WindowsCtrlAltShiftK |
| Detach instance | Mac⌥⌘B | WindowsCtrlAltB |
How to reset an instance
Open More actions next to the component name in the right sidebar and choose Reset. Reset one property, or pick Reset all changes to match the main again. Resetting keeps the link, so reach for it before you detach.
How to restore a deleted main component
Deleting a main component doesn't delete its instances. In the same file, select one of them and click Restore component. If the main lived in a library file, hover the library name and use Go to main component in library, then Restore there.
Ranked listThe best Figma plugins for design systems in 2026Frequently asked questions
What is the shortcut to go to the main component in Figma?
⌃⌥⌘K on Mac and Ctrl+Alt+Shift+K on Windows. For a library component, hover the library name and choose Go to main component in library.
Why did my overrides disappear after swapping?
Figma keeps only text overrides when you swap. Fills, effects and other changes are dropped. Give text layers unique names so the text carries over.
How do I replace a whole library's instances?
Use Swap libraries. It replaces instances in a file with the matching components from another library, so you don't have to swap each one by hand.
More in Components & variants
- How to Generate All Component Variants in FigmaFigma shows only the variants you draw. Here's how to lay out every combination of variant, boolean and nested props as a matrix, by hand or with Instancer.
- How to Make a Skeleton Loader in FigmaHow to design a skeleton loader in Figma: grey blocks with auto layout, a component with variants, a Smart Animate shimmer, and a plugin that converts frames.
- How to Add Properties to a Figma ComponentAdd boolean, text, instance swap, variant and slot properties to a Figma component, link them to layers, and fix 'not used within component' warnings.
- How to Detach an Instance in Figma (and Remove a Component)Detach a Figma instance with ⌥⌘B or Ctrl+Alt+B. Why Detach is missing, how to detach a nested instance, and how to turn a main component back into a frame.
- How to Create a Component in FigmaCreate a Figma component with ⌥⌘K or Ctrl+Alt+K, the Create component button or a right-click. Plus bulk creation, instances and what the purple icon means.
- Why Are My Nested Components Not Working in Figma?Expose nested instance properties in Figma, fix 'components can't contain instances of themselves' and the swapped-with-parent error, and see what can't change.
- How to Add a Slot to a Figma ComponentAdd a slot to a Figma component with Convert to slot (⌘⇧S or Ctrl+Shift+S) or Wrap in new slot. Settings, limits, and when to use slots vs instance swap.
- How to Export Figma Variables to JSON (and CSS, Tailwind or CSV)Export Figma variables to JSON natively, convert them to CSS or Tailwind with Style Dictionary, and move variables between files with Variable Master.
- How to Make Design Specs in FigmaWhat a Figma design spec should include, how to build a component spec template by hand, what Dev Mode already covers, and how to generate specs with Autospec.
- How to Add a Hover Effect in FigmaMake Default and Hover variants, connect them with While hovering, Change to and Smart animate. Plus why Figma hover states stick or don't fire, and the fix.
- How to Outline a Stroke in FigmaOutline stroke in Figma turns a stroke into a filled shape with Cmd+Option+O. How it differs from Flatten and Outline mode, plus the shortcuts for each one.
