How to Create a Component in Figma: Step-by-Step Guide
To create a
component in Figma, select the design elements you want to reuse and press Ctrl + Alt + K (Windows) or Cmd + Option + K (Mac). This groups the elements into a reusable component that you can place multiple times in your designs.Syntax
Creating a component in Figma involves selecting one or more design elements and converting them into a reusable object called a component. The main ways to create a component are:
- Keyboard shortcut:
Ctrl + Alt + K(Windows) orCmd + Option + K(Mac) - Right-click menu: Right-click selected elements and choose Create Component
- Menu bar: Use Object > Create Component from the top menu
Once created, the component acts as a master copy. You can create instances of it that update automatically when the master changes.
figma
Select elements -> Press Ctrl + Alt + K (Windows) or Cmd + Option + K (Mac)
Example
This example shows how to create a button component from a rectangle and text:
figma
1. Draw a rectangle and add text on top (e.g., "Submit" button). 2. Select both the rectangle and text layers. 3. Press Ctrl + Alt + K (Windows) or Cmd + Option + K (Mac). 4. The selection becomes a component with a purple outline. 5. Drag instances of this component from the Assets panel to reuse the button in your design.
Output
A reusable button component with multiple instances linked to the master component.
Common Pitfalls
Common mistakes when creating components in Figma include:
- Not selecting all elements you want in the component, resulting in incomplete components.
- Forgetting to create instances and instead duplicating the master component, which breaks the link and prevents updates.
- Overcomplicating components with too many nested layers, making them hard to manage.
- Not naming components clearly, which can cause confusion in large projects.
Always double-check your selection before creating a component and use instances to maintain consistency.
figma
Wrong way:
- Duplicate a component by copying instead of creating an instance.
Right way:
- Drag from Assets panel to create instances linked to the master component.Quick Reference
| Action | Shortcut / Menu |
|---|---|
| Create Component | Ctrl + Alt + K (Windows) / Cmd + Option + K (Mac) |
| Create Component (Right-click) | Right-click > Create Component |
| Create Component (Menu) | Object > Create Component |
| Insert Instance | Drag component from Assets panel |
| Rename Component | Double-click component name in Layers panel |
Key Takeaways
Select all elements you want before creating a component.
Use Ctrl + Alt + K (Windows) or Cmd + Option + K (Mac) to create components quickly.
Always use instances from the Assets panel to reuse components and keep designs consistent.
Name components clearly to stay organized.
Avoid duplicating components by copying; use instances instead.