Switch

  • Updated

 

You can add a preconfigured switch in Replo to toggle between behaviors or states.

To Add a Switch Component

To add a switch to the page:

  1. Find the Add Components tab on the left side of the editor.
  2. Search switch
  3. Hover over the component and click and drag to add it to the page.

Configuring a Switch Component

When you first insert a switch component it includes a "Default" and "Active" state. The default state represents the toggle in one position, and the active state in the other.

Switches can be used to represent a variety of events on your Replo page. You may want to set an on click interaction that moves the toggle and reveals a hidden component or have the switch activate when a particular variant is selected. You can read more about interactions here.

Was this article helpful?