Toggle buttons are these amazing UI components that provide functionality to switch between states, like pause and play, on and off, active and inactive. It allows the user to change a setting between two or more states. Most common toggle button is used as On/Off button in preferences. So here are 45 amazing and fun toggle switch buttons using CSS and Javascript I found on CodePen.