Solarus Design system
Updated · 20 Nov 2026 solarus.run
Base · Controls

Toggle

Pill switch, 34×20: <Toggle on onChange disabled title />.

Notes

  • Off: hairline track, sub knob. On: accent track, ivory knob. Reserve the accent track for switches that themselves represent a state (Law 1); otherwise the track may be ink.
  • .tgl.paused: held by the plan — hairline track, faint knob on the right, not clickable.
  • Consumer provides on, onChange, optional disabled, title. Always pair it with a visible label.

Code

// React · window.Solarus
<Toggle on onChange disabled />

/* HTML classes · bundle.css */
.tgl