Web Design » Figma » How Do You Create a Component State in Figma?

How Do You Create a Component State in Figma?

Last updated on January 18, 2023 @ 1:20 am

When you’re working on a design in Figma, you may need to create a component state. For example, you may want to create a “hover” state for a button. Or an “error” state for a form field. Creating a component state is easy! Here’s how:

1. Select the element that you want to create a state for.

Select the Figma state elements to create a component

2. In the property inspector on the right, click the “States” tab. However, make sure you created a component set for your elements first before proceeding. To do so, simply click the “Component” icon in the top menu and select the “Create a component set” option.

Click the Figma component icon and select component set from the menu

3. Click the “+ Add State” button. You can find it in Figma “Prototype” tab and is commonly known as “Interactions.” Click the add icon and adjust your interaction details.

Go to Figma prototype tab, click add interactions and details

4. Enter a name for the state (e.g. “Hover” or “Error”). Then go to Figma “Assets” tab at the left-side panel and find your newly created component set. Drag it to your Figma frame and click the prototype “Play” button to preview if your component state works as expected.

In the Figma assets tab, drag the final component state to your canvas and click play to preview

5. Make any changes to the element that you want to apply to this state. In this tutorial, we use the “Hover State” so whenever the mouse hovers over the button, our Default Button changes to Hover State Button. And that’s it! A successful component state has been created.

Hover component state in Figma

6. Repeat steps 3-5 for any other states that you want to create.

Creating a component state is easy! Simply follow the steps above and you’ll have your states created in no time.

PRO TIP: Please be aware that Figma component states are not currently supported on mobile devices. This means that if you are working on a mobile design in Figma, you will not be able to create or edit component states.
Kathy McFarland

Kathy McFarland

Devops woman in trade, tech explorer and problem navigator.