centuryliner.blogg.se

Figma interactive components
Figma interactive components









  1. #FIGMA INTERACTIVE COMPONENTS HOW TO#
  2. #FIGMA INTERACTIVE COMPONENTS FREE#

In my examples, I will use a variant as the destination to swap it from Switch OFF to Switch ON. In this setting, you can define what will happen when the interaction is activated for interactive components, we will use Change To which allows swapping the variants inside a component. These are known in development as Events and are the different ways we the user can activate an interaction. Figma has a lot of information on their site so I will include links for those of you that want to dig deeper.Įven though this is not inside the panel, the hotspot is the element where the interaction will happen, in our case, each variant will be an interactive hotspot for which you can define triggers and actions. It’s important to understand the Interaction Details panel because it allows us to define the different interactions and animations for our interactive components. These are the different styles a component can have and are usually used to apply different properties such as size or states. You can also apply overrides to instances (which are basically style changes to the component properties which allow for some customization). Think of these as items that, when duplicated, create a connection with its copy (called instance) and when the component is changed, the instance receives the same changes. It’s necessary to understand some key Figma elements that we are going to use, if you’re already familiar with them you can skip this part and start directly with the first tutorial (section: “Create your first Interactive Component”). Once you join the Beta, you can duplicate my design and follow along more easily. I have created a Figma design file with the examples from this article.

figma interactive components

#FIGMA INTERACTIVE COMPONENTS FREE#

Joining the Beta is free and once you submit the form, it should not take more than two or three days before you see Interactive Components appear in your Figma design tool. You need to sign up for the Interactive Components Beta program to start experimenting with this new feature as it is not yet available in the current stable release.

figma interactive components

Now, before we start: Interactive Components (Beta Access)

figma interactive components

#FIGMA INTERACTIVE COMPONENTS HOW TO#

Using Interactive Components simplifies not only the final prototype but also the logic behind it, making it easier to learn how to build, maintain and update the prototypes. In the next example, it only requires one screen and one component with two variants for the interactions, and the switch is the same so it can be duplicated as many times as needed: And if I wanted to use three switches, I would have to add even more screens and interactions.

figma interactive components

Here’s a comparison example of how the workflow will change:Īs you can see in the example above, it requires four screens and eight interactions to make the prototype work as a real product. This means that it is now possible to create a component with states (hover, active, clicked, focus) and make it interactive so that every copy of the component will inherit those same interactions by default, helping a lot in the prototyping phase. Recently, Figma rolled out the beta for the newest interactive components feature that allows defining interactions and animations directly into the variants and propagates them to every component instance.











Figma interactive components