Toggle Switch

Switches in a settings list. Press one and the knob widens toward the side it's about to go to; let go and it crosses over while the colour grows out of the knob to fill the track, or shrinks back into it. Drag the knob and the colour follows it, then it lands on the nearer side or the side you threw it to. Tapping the row's words switches it too. Comes in small, regular and large.

  • switch
  • toggle
  • settings
  • accessible

Code

Copy-paste source. No packages to install.

Sign up to copy Toggle Switch

Free accounts include one component unlock every month — in all four frameworks.

Next componentSegmented Control→