How to use interactive components in Figma
Make a Figma component respond to clicks: add an interaction to one variant, set On click, and use Change to to switch to another variant.

Quick answer
Select the Default variant of a component, open the Prototype tab, add an interaction, set the trigger to On click and the action to Change to, then choose the variant to switch to. The new interaction then appears immediately in the Interactions list in the right sidebar.
Steps at a glance
- Open the Prototype tab
- Add an interaction to the Default variant
- Open the interaction details
- Set the action to Change to
- Pick the variant to change to
Interactive demo
Summary
Interactive components let one component switch between its variants when someone interacts with it. You set this up in the Prototype tab by giving a variant an interaction that changes to another variant.
Step-by-step guide
Step 1
Open the Prototype tab
With your component set open, select the Default variant in the layers panel. Then click Prototype at the top of the right sidebar to switch from the design properties to the prototype settings.
Step 2
Add an interaction to the Default variant
In the right sidebar, find Interactions and click the plus beside it. Figma adds a new interaction to the selected variant.
Step 3
Open the interaction details
The new row reads Click None. Click it to open the Interaction panel, which holds the trigger and the action.
Step 4
Set the action to Change to
The trigger is already set to On click. Open the Action list and choose Change to, so a click changes the component to another variant.
Step 5
Choose the variant to change to
Open the Property 1 list. It shows Default and Variant2. Choose Variant2 so a click on the Default variant switches the component to Variant2.
Why this matters
You have a button or toggle with two states and you want it to react when someone clicks it. Setting the interaction on the component means every copy behaves the same way, with no extra frames to wire up.
Frequently asked questions
Is the trigger already set?
Yes. When you add an interaction, the trigger shows On click, so you only need to change the action.
Which variants can I choose?
The Property 1 list shows each variant in the component set. In this example it listed Default and Variant2.
Related guides
Continue with more step-by-step guides for getting work done.
How to create a component in FigmaTurn any shape into a reusable component in a Figma design file: select the layer, click Create component, then find it listed under Assets.
How to add a prototype link in FigmaLink a button to another frame in Figma. Open the Prototype tab, drag a connection to your destination frame, and set up a click interaction.
How to present a prototype in FigmaLearn how to present a prototype in Figma: open the Prototype tab, click Present, step through your frames, and close the preview when you finish.
How to use a mask in FigmaLearn how to use a mask in Figma: select two overlapping shapes, choose Use as mask, and clip the top shape to the one below it in the Layers panel.
How to use the pen tool in FigmaLearn how to use the pen tool in Figma: pick Pen, click points on the canvas, close the path, and find the finished vector in the Layers panel.
How to use variables in FigmaApply a color variable to a layer in Figma. Select the layer, open the Fill picker, search the Libraries tab, and pick your variable for the fill.
Create interactive demos like this one — free, no coding required.
Start for free →