CSS Toggle Switch: On and Off
CSS toggle switch playground
Click a setting or focus its switch and press Space. These are local demo controls; they do not change your account or save preferences.
Managed setting is disabled for this example. Its On state is visible, but it cannot be changed.
No JavaScript or dependencies. Thumb position and visible On/Off text show the state alongside color. Your browser may restore form state when reloading.