Skip to content
geeksforgeeks
  • Tutorials
    • Python
    • Java
    • Data Structures & Algorithms
    • ML & Data Science
    • Interview Corner
    • Programming Languages
    • Web Development
    • CS Subjects
    • DevOps And Linux
    • School Learning
    • Practice Coding Problems
  • Courses
    • DSA to Development
    • Get IBM Certification
    • Newly Launched!
      • Master Django Framework
      • Become AWS Certified
    • For Working Professionals
      • Interview 101: DSA & System Design
      • Data Science Training Program
      • JAVA Backend Development (Live)
      • DevOps Engineering (LIVE)
      • Data Structures & Algorithms in Python
    • For Students
      • Placement Preparation Course
      • Data Science (Live)
      • Data Structure & Algorithm-Self Paced (C++/JAVA)
      • Master Competitive Programming (Live)
      • Full Stack Development with React & Node JS (Live)
    • Full Stack Development
    • Data Science Program
    • All Courses
  • Trending
  • NEWS
  • Blogs
  • Tips & Tricks
  • Website & Apps
  • Tech Tips
  • Tech Blogs
  • ChatGPT Blogs
  • Tech News
  • AI News
  • ChatGPT News
  • ChatGPT Tutorial
Open In App
Next Article:
Creating and Using Figma Components
Next article icon

Creating and Using Figma Components

Last Updated : 10 Jul, 2024
Comments
Improve
Suggest changes
Like Article
Like
Report

Creating and using Figma components makes your design process faster and more organized. Components are reusable design elements, like buttons or icons, that you can use across your project. In this article, we’ll show you how to create and use Figma components to keep your designs consistent and efficient.

Figma Components
Components in Figma

Table of Content

  • What are Components in Figma?
  • How to Create Components?
    • 1. Creating component
    • 2. Creating multiple components
    • 3. Creating variants from components
    • 4. Applying component properties
    • a. Show Icon property (Boolean property)
    • b. Change Icon property (Swap Instance property)
    • 5. Applying prototypes
  • Properties
  • Importance of Components

What are Components in Figma?

Components in Figma are reusable design elements, such as buttons, icons, or forms, that you can use throughout your project. They help keep your design consistent by ensuring that these elements look and behave the same way everywhere they are used. When you update a component, all instances of that component across your design automatically update as well, saving you time and effort. Components make it easier to maintain and scale your designs efficiently.

How to Create Components?

1. Creating component

Step 1: Create a button with some background color & text "Click me" along with an icon placed beside the text.

Button element
Button element

Step 2: Now right click the button and view the options & select Create component, or simply click Ctrl + Alt + K.

Create component
Create component

Step 3: A four dots symbol appears beside the element that has been converted into a component like this:

Button component
Button component

2. Creating multiple components

Step 1: Firstly create a set of elements and select all of them together. Click on the triangular symbol at the top and choose one of the options: Create multiple components OR Create component set.

Options
Options

Step 2: Create multiple components leads to each of the element being converted to a single component.

Multiple components
Multiple components

Step 3: Create a component set leads to grouping of several components into a variant set of a number of variants used to depict those elements with similar features.

Component set
Component set

3. Creating variants from components

Step 1: Add a button element in the design frame.

Button element
Button element

Step 2: Convert the element into a component.

Component
Component

Step 3: Select variant from the top column and create a variant of the component.

Variant creation
Variant creation

Step 4: Two variants will thus be created: Default & Variant 2.

Variants
Variants

4. Applying component properties

a. Show Icon property (Boolean property)

Step 1: Create a button & convert it to a component.

Button component
Button component

Step 2: Choose the plus button beside the properties tab where several component properties options are displayed and add the property name "Show Icon" and change the value to true.

Component Property
Component Property

Step 3: Create an instance of the component from the assets tab.

Button Instance
Button Instance

Step 4: Now for the instance, you can toggle over the "Show Icon" property button to add icon or remove the icon & display only the text.

Toggle Button of Show icon
Toggle Button of Show icon

b. Change Icon property (Swap Instance property)

Step 1: Add several icons in the design file, convert each icon to a component and then create it's variant. Do it somewhat like this:

Variants of Icons
Variants of Icons

Step 2: For the button, add one of the above icon variants at the place of icon. Set the button to auto layout and adjust the padding & margin. The tab at the left should look like this:

Variant Icon
Variant Icon

Step 3: Now go to the button component element, and for the component property select Swap Instance property.

Swap Instance Property
Swap Instance Property

Step 4: Set the name of property to "Change Icon" and set the values to different icons lying in the design file.

Swap Instance Property
Swap Instance Property

Step 5: Create an instance of the button component using the assets tab.

Instance
Instance

Step 6: For the instance, the property would appear like this and now you can change the name of the icon to get the desired results, without having to copy paste the icon every time.

Component property
Component property

5. Applying prototypes

Step 1: Click on the Prototype tab for the button component.

Prototype tab
Prototype tab

Step 2: Draw the arrow from plus sign from the button 1 to variant of the default button with a different icon. Select different animations, time duration & hover effect.

Animation type
Animation type

Step 3: Open presentation mode and view the animation that has been formed using the help of components that would look somewhat like this:

Component Animation
Component animation

Properties

1. Components are of two types:

  1. Main Component: It is the default element that is converted into a component. We can do so by using the shortcut Ctrl + Alt + K.
  2. Instance: Instance is a copy of the component that is found in the Assets tab so that the updates or the properties of the main component can be used.

2. The name of component can be used as a shorthand to directly convert the component name into it's component properties and values. For eg. componentName / hover (state) / true.

3. Instances of the components are created to use the component all over the design file. Individually changing the design of each button and creating a new button every time is not possible, hence we use instances.

4. A component consists of Three major properties:

  1. Instance Swap Property: It allows to effectively swap icons, or text according to the listed options. Say for example, we have a button with house icon. We can add instance swap property to it with other icons such as heart, diamond, smiley etc. This would allow us when creating an instance of the button, to change the icons in one click.
  2. Boolean Property: It holds two values, true & false. When applied it shows a toggle button to hover over it. Say for example, a button must consist of an icon or not. If we set the boolean property to "hasIcon" and set it to true, then creating an instance of it and setting the value of "hasIcon" to false would remove the icon in the instance button.
  3. Variant Property: It allows creation of different sections of similar properties. Like we can create 3 types of variants for a button, one for pressed state, one for disabled and the other one for hover state. And then we can individually change their properties and values.

Importance of Components

  • Components allow reusability of code and increase efficiency. It is not possible to copy paste every time. Simply changing the state of the instance would do the good.
  • Components & their instances are easy to implement and require no complex designing or calculations. It just requires toggling or changing the properties.
  • Components help in customization. They allow an easy access to customize every button, such as adding Icon or removing icon from the instance.
  • They allow prototyping & testing. Each component can have a new possible type of prototype or animation.

Conclusion

Figma components are a great way to save time & efficiency, and bring about the best in less time. They help in reusing previous designs without having to update much of it and simply toggle the properties of the existing element in the right hand side tab. They are a great way to save time & efforts. Using the above screenshots and examples, one can try out forming new components and use them in their design later.


Next Article
Creating and Using Figma Components

R

riyarjha
Improve
Article Tags :
  • Websites & Apps
  • UI Design

Similar Reads

    Components and Nested Component in Figma
    With Figma – an innovative collaborative design tool – design teams no longer need to focus on their own efficiencies or scalability, they also work together. Figma is at its core efficient, which incorporates components and nested components. This article comprehensively outlines what Components an
    5 min read
    How to Create an Image Component in MATLAB?
    MATLAB is an extensive tool that provides various options to its users. Creating image components is one of those tools. MATLAB provides simple functions to create image components. The uiimage function creates a new image component in a new figure by calling on the uifigure function. Usage of uiima
    2 min read
    Creating Market Campaigning Website Using Figma
    Figma is essentially used for web designing, and when it's about Marketing designs it is great in creating eye-catching campaigning assets. A marketing design in Figma mostly revolves around the different products the company wants to sell through the website and showing the previous customer data,
    5 min read
    Constraints in Figma
    Responsiveness and flexibility are two crucial elements of any successful design, especially while designing the User Interface (UI) for any application or device as it creates good User Experience (UX), and constraints control those two parameters. So, constraints guide Figma’s layers on how to res
    6 min read
    Creating Apps Using App Designer in MATLAB
    MATLAB is a powerful, high-level programming language. Matlab is widely used for designing systems by engineers and scientists and we all know that the best way to represent any idea is by using a simple but effective GUI. Matlab app builder provides you the power to build different apps, to represe
    3 min read
geeksforgeeks-footer-logo
Corporate & Communications Address:
A-143, 7th Floor, Sovereign Corporate Tower, Sector- 136, Noida, Uttar Pradesh (201305)
Registered Address:
K 061, Tower K, Gulshan Vivante Apartment, Sector 137, Noida, Gautam Buddh Nagar, Uttar Pradesh, 201305
GFG App on Play Store GFG App on App Store
Advertise with us
  • Company
  • About Us
  • Legal
  • Privacy Policy
  • In Media
  • Contact Us
  • Advertise with us
  • GFG Corporate Solution
  • Placement Training Program
  • Languages
  • Python
  • Java
  • C++
  • PHP
  • GoLang
  • SQL
  • R Language
  • Android Tutorial
  • Tutorials Archive
  • DSA
  • Data Structures
  • Algorithms
  • DSA for Beginners
  • Basic DSA Problems
  • DSA Roadmap
  • Top 100 DSA Interview Problems
  • DSA Roadmap by Sandeep Jain
  • All Cheat Sheets
  • Data Science & ML
  • Data Science With Python
  • Data Science For Beginner
  • Machine Learning
  • ML Maths
  • Data Visualisation
  • Pandas
  • NumPy
  • NLP
  • Deep Learning
  • Web Technologies
  • HTML
  • CSS
  • JavaScript
  • TypeScript
  • ReactJS
  • NextJS
  • Bootstrap
  • Web Design
  • Python Tutorial
  • Python Programming Examples
  • Python Projects
  • Python Tkinter
  • Python Web Scraping
  • OpenCV Tutorial
  • Python Interview Question
  • Django
  • Computer Science
  • Operating Systems
  • Computer Network
  • Database Management System
  • Software Engineering
  • Digital Logic Design
  • Engineering Maths
  • Software Development
  • Software Testing
  • DevOps
  • Git
  • Linux
  • AWS
  • Docker
  • Kubernetes
  • Azure
  • GCP
  • DevOps Roadmap
  • System Design
  • High Level Design
  • Low Level Design
  • UML Diagrams
  • Interview Guide
  • Design Patterns
  • OOAD
  • System Design Bootcamp
  • Interview Questions
  • Inteview Preparation
  • Competitive Programming
  • Top DS or Algo for CP
  • Company-Wise Recruitment Process
  • Company-Wise Preparation
  • Aptitude Preparation
  • Puzzles
  • School Subjects
  • Mathematics
  • Physics
  • Chemistry
  • Biology
  • Social Science
  • English Grammar
  • Commerce
  • World GK
  • GeeksforGeeks Videos
  • DSA
  • Python
  • Java
  • C++
  • Web Development
  • Data Science
  • CS Subjects
@GeeksforGeeks, Sanchhaya Education Private Limited, All rights reserved
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our Cookie Policy & Privacy Policy
Lightbox
Improvement
Suggest Changes
Help us improve. Share your suggestions to enhance the article. Contribute your expertise and make a difference in the GeeksforGeeks portal.
geeksforgeeks-suggest-icon
Create Improvement
Enhance the article with your expertise. Contribute to the GeeksforGeeks community and help create better learning resources for all.
geeksforgeeks-improvement-icon
Suggest Changes
min 4 words, max Words Limit:1000

Thank You!

Your suggestions are valuable to us.

What kind of Experience do you want to share?

Interview Experiences
Admission Experiences
Career Journeys
Work Experiences
Campus Experiences
Competitive Exam Experiences