How to create component’s variants in Figma

Watch Video Tutorial

Create Variants

  • In order to transform this series of button, we’ll just select all our buttons.
  • Head to the top-bar menu and hit the arrow besides the Create component icon.
  • In the drop-down menu, select Create components set

Add variants properties

  • First, select the Component set.
  • Head to the Variants section in the right-hand sidebar.
  • Hit the three dots icon in the right corner of the Variants section, and select Add new property.

Add variants Values

  • Let’s select our Component set and go back to the Variants section.
  • Double-click on the first property value which is Default and rename it to False.
  • You can repeat this process for all the other Properties values.

Apply Variants Properties

  • We’ll select the first variant.
  • Let’s go back to the Variants section.
  • For our first variant, well keep it’s properties to default
  • We’ll move to our second component and change the first property icon-button to true.
  • Let’s select the third variant and change the second property dropdown-button to true.
  • Let’s select the last variant and change the third property close-button to true.
  • Let’s drag and drop our component set from the Assets panel to our canvas.
  • Go to the instance section in the right-hand sidebar.

Before you go

--

--

Figma Landing Page’s Design Resources Colors palettes, Typography Styles and ready to use Components. https://www.captain-design.com/

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Raouf Belakhdar

Raouf Belakhdar

Figma Landing Page’s Design Resources Colors palettes, Typography Styles and ready to use Components. https://www.captain-design.com/