Toggle

toggle · Controls · All components

On/off switch with label on the left.

Toggle example

board
  screen custom width=300 height=100
    toggle "On" on
    toggle "Off" off

Writing it

Props

Prop Values Notes
label (main text) string
on boolean

tsquare 0.9.0 · View this page on GitHub