Toggle
toggle · Controls · All components
On/off switch with label on the left.

board
screen custom width=300 height=100
toggle "On" on
toggle "Off" offWriting it
- A quoted string sets label:
toggle "…". onandoffswitch it on and off.- Anything else is written
key=value. - Has no children.
Props
| Prop | Values | Notes |
|---|---|---|
label (main text) |
string | |
on |
boolean |
tsquare 0.9.0 · View this page on GitHub
tsquare