Start from a template
The left panel's Start from has twelve ready flows: buttons, toggles, tabs, counters, loaders, a theme switcher. Here the switch already has its two states, Off and On; the Toggle template turns them into a flow that answers clicks, and My flows keeps it for your other projects.
Step by step
Open a template
Under Start from › Click, click Toggle. Its card shows what it does, a small chart of it, and the states it uses: the ones your file already has by those names are marked yours, used as they are; the others would be added at the end of the timeline.
Use it in this file
Click Use in this file. The flow Toggle opens on the chart, with its interactions and its variable On, which the page can read and set. Nothing your project had is changed, and Undo takes it back in one step.
Try it
Click the switch on the canvas: it turns on, and the next click turns it off. The right panel's Variables shows On following it.
Keep it in My flows
Click + beside My flows, then Save “Toggle”. It is kept in this browser with its states, interactions, variables and actions (not the artwork or the keys), ready to use in any project. Its ⋯ menu downloads it as a file, to share it or use it on another computer.
Keys
| Esc | Close the card |