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

  1. Open the Prototype tab
  2. Add an interaction to the Default variant
  3. Open the interaction details
  4. Set the action to Change to
  5. Pick the variant to change to

Interactive demo

Loading 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

  1. 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.

  2. 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.

  3. 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.

  4. 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.

  5. 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.

Create interactive demos like this one — free, no coding required.

Start for free →