0
100
200
300
400
500
600
700
800
900
1000
1100
0
100
200
300
400
500
600
700
800
900
1000
1100
Guide · Components & variants

How to Create a Component in Figma

To create a component in Figma, select a layer and press ⌥⌘K on Mac or Ctrl+Alt+K on Windows. You can also click Create component in the right sidebar next to the selection name, or right-click and choose Create component. It works on any plan, as long as you have edit access to the file.

The layer you converted is now the main component. Every copy you place from it is an instance, and changes to the main flow through to all of them.

Updated Sep 24, 20265 min read
On this page
5 steps

Quick steps

1

Select the layer

Select the frame, group or shape you want to reuse. A frame with auto layout is the usual starting point for buttons, cards and inputs.

2

Create the component

Press ⌥⌘K on Mac or Ctrl+Alt+K on Windows, click Create component in the right sidebar, or right-click and choose Create component.

3

Name it

Double-click the layer name and give it a clear name. A consistent pattern like Button/Primary makes it easy to find in Assets search.

4

Place an instance

Open the Assets panel with ⌥2 on Mac or Alt+2 on Windows and drag the component onto the canvas. That copy is an instance.

5

Add properties

Select the main component and use the Properties section in the right sidebar to add boolean, text or instance swap properties, so instances can change without detaching.

01

Create component keyboard shortcut

Create componentMac⌥⌘KWindowsCtrlAltK
Detach instanceMac⌥⌘BWindowsCtrlAltB
Go to main componentMac⌃⌥⌘KWindowsCtrlAltShiftK
Quick insert (place or swap a component)Mac⇧IWindowsShiftI
Open the Assets panelMac⌥2WindowsAlt2

If ⌥⌘K does nothing, check that you have edit access and that your keyboard layout matches the one set in Figma. Default shortcuts assume US QWERTY. More on that in Figma shortcuts not working.

02

How to create multiple components at once

Select several layers, open the menu next to the selection name at the top of the right sidebar, and choose Create multiple components. Figma makes one component per frame, group, boolean or path in the selection. Use it when you have a sheet of icons: one action turns 40 icons into 40 components. It works on any plan. Rename the layers before you run it, so the components are easy to find in Assets later.

03

Why is my layer purple in Figma?

Figma's help center says you can identify components in the Layers panel by the purple Component icon. Instances are marked in the same colour in current versions of Figma, so a purple layer is almost always a component or an instance of one. If a layer turned purple right after you pressed a shortcut, you probably created a component by accident. Undo right away, or see how to detach an instance for the longer workaround.

04

How to add an instance in Figma

  • Assets panel: press ⌥2 / Alt+2, find the component and drag it onto the canvas.
  • Quick insert: press ⇧I / Shift+I, search by name and place it.

Components from another file show up in Assets only after that file is published as a library and added to your file. If they don't appear, work through Figma library not showing.

05

What changed in the new Figma UI

In the current UI, the Create component button sits in the right sidebar next to the selection name, and Create multiple components lives in the menu beside it. The ⌥⌘K / Ctrl+Alt+K shortcut still works. Component properties now include five types: Boolean, Text, Instance swap, Variant (component sets only) and Slot, which rolled out from March 2026 (open beta). See Figma slots for the newest one.

06

Main component vs instance

Edit the main component and every instance updates. Edit an instance and you create an override that only affects that copy. Some overrides aren't possible on an instance at all: layer order, position, constraints and text layer bounds. Those have to change on the main. To undo your own overrides on an instance, open More actions next to the component name in the right sidebar and choose Reset, then reset one property or all changes.

If you delete a main component, its instances stay. Select one of them and click Restore component in the right sidebar to bring the main back.

07

Turn one component into a set of variants

States of the same thing, like a button's Default, Hover and Disabled looks, belong together as variants in one component set. Once the set exists, select a variant and press ⌘D / Ctrl+D to add another, then change its property values, such as State=Hover, and edit what differs. The variants guide covers the rest.

If you edited an instance and want the main to match, select the instance and use Push changes to main component. It only works when the main is in the same file, not for library or nested components.

08

Document the component once it exists

A component nobody can read gets detached. Once it has properties, a spec sheet next to it helps the next designer and the developer: anatomy, spacing and a table of each property with its values. Autospec, our plugin (free to start), generates that frame from the selected component. The full approach is in how to make Figma design specs.

Next steps: add component properties so instances stay flexible, then publish a library to share the component across files.

Ranked listThe best Figma plugins for design systems in 2026
FAQ

Frequently asked questions

What is the shortcut to create a component in Figma?

⌥⌘K on Mac and Ctrl+Alt+K on Windows. You can also click Create component in the right sidebar or right-click the layer and choose Create component.

Can I create components on the free plan?

Yes. Creating components works on any plan for anyone with edit access to the file. Publishing them as a shared library is what needs a paid plan.

How do I turn a component back into a normal layer?

There's no Remove component command. Undo right after creating it, or place an instance, detach it with ⌥⌘B / Ctrl+Alt+B, and delete the main component.

Why is a layer purple in Figma?

Purple marks components. Figma's help center points to the purple Component icon in the Layers panel as the way to spot them. Instances use the same colour in current versions, so a purple layer is usually a component or an instance.

Keep learning

More in Components & variants

All guides in Components & variants