This pattern shows how to create a responsive, adaptive and accessible switch component.
Full article · Video on YouTube · Source on Github