Copy link to clipboard
Copied
4. This is the default state of your component, as indicated in the Properties panel.
5. Click "+" to add a new State. Let's call this state, "Disabled"
6. With the "Disabled" state selected, double-click the rounded rectangle to select it, and fill it with gray.
7. Similarly, double-click the circle, fill it with a lighter shade of gray, and move it to the other corner of the rectangle.
8. Move to the Prototype mode, select the component, and click Default State in the Properties panel. Click the arrow icon.
9. In the Properties tab, select the Trigger to Tap, Action to Auto Animate, and Destination to Disabled.
10. Similarly, click Disabled state, and set the Trigger to Tap, Action to Auto Animate, and Destination to Default State.
11. Preview the toggle button and check if the toggle is working as intended.
Reply to this post if you are having issues recreating the toggle button.
Copy link to clipboard
Copied
That's a cool new feature!
The only part I thought it was a bit confusing was the prototyping part. At first I thought a new artboard was necessary to be able to auto animate the component (drag the arrow to another artboard to set the interaction) but later I found out I could click the "+" in Interaction section.
I tried to drag the component to itself, hoping it would able the interaction section.
Copy link to clipboard
Copied
I saw in another post that I can just click the arrow and it'll start a new interaction. Cool!