This eluded my radar.
On Safari TP you can use "switch" attribute in an input type checkbox and it turns into a switch
Demo: https://codepen.io/Rik/pen/gOEYZgE?editors=1000
Release: https://webkit.org/blog/14885/release-notes-for-safari-technology-preview-185/