Bootcamp

From idea to product, one lesson at a time. To submit your story: https://tinyurl.com/bootspub1

Follow publication

Creating Components on Figma

Deidre Wong
Bootcamp
Published in
4 min readMar 20, 2022

How to create a component

Step 1

Right-click, select Create component

Step 2

Publish your library

Creating component variants

Method #1 : Create a component, then add variants

Step 1

Step 1: Create component by right-clicking and selecting ‘Create component’

Step 2

Step 2: Click on the ‘plus’ icon to add a variant

Step 3

The newly added variant will appear beneath the main component. Adjust the properties. In this case I am created a Hover state with a darker purple fill, and renamed Property 1’s definition accordingly to ‘Hover’.

Step 4

You can continually add variants by clicking the ‘plus’ icon that appears on the bottom right of the grid

Step 5

Create an instance by duplicating the master component. On the instance, you can easily toggle between states in the design panel.

Method #2 : Create variants by grouping master components

Select all component variants and click ‘Combine as variants’
Final result: Variants created on Figma will be grouped automatically within a dotted purple grid.

How to set default interaction behaviours in components

Prototyping the hover state
Button returns to its default colour when the mouse leaves

The Final Result

Button with hover effect

Why is it important to pre-define variants and behaviours in each component?

Consistent UI

Save time on prototyping

Better quality work

Bootcamp
Bootcamp

Published in Bootcamp

From idea to product, one lesson at a time. To submit your story: https://tinyurl.com/bootspub1

Deidre Wong
Deidre Wong

Written by Deidre Wong

Step-by-step Figma tutorials and design content

No responses yet

Write a response