Base · Controls
Toggle
Pill switch, 34×20: <Toggle on onChange disabled title />.
Notes
- Off: hairline track,
subknob. On:accenttrack,ivoryknob. Reserve the accent track for switches that themselves represent a state (Law 1); otherwise the track may beink. .tgl.paused: held by the plan — hairline track,faintknob on the right, not clickable.- Consumer provides
on,onChange, optionaldisabled,title. Always pair it with a visible label.
Code
// React · window.Solarus <Toggle on onChange disabled /> /* HTML classes · bundle.css */ .tgl