Chrome to Add Built-in “Toggle Switch” Element

Toggle switches are now everywhere. Our mobile phones are full of them and we even have them on websites.

It is however is not a built-in feature of browsers. Even though it is fairly easy to implement, you still need to manually integrate them in your code. Popular UI frameworks provide this as a component to use.

A proposal was recently submitted to make this a browser feature. The Chrome team picked this up today and started working on it. Hmm, maybe they were working on this for a while now. The bug for this feature request was opened on 10th June 2019. I see the initial code check-in for this on the same day. If you consider the fact that the original idea was submitted on Nov 19, 2018, it is safe to assume that the Chrome team has been working on this for a while.

How does this work? If you are a developer, you will find all the details you need from these places:

For ordinary web users like us, expect to see toggle switches everywhere on the web because it is going to really easy for developers to implement them. Websites will look more like native applications on the web.

Added to Blink – Will Come to Other Chromium Browsers too

The code was checked into the repository for Blink rendering engine. This means Chromium based browsers like Microsoft’s new Edge and Opera will also can ship this feature if they wish to do so.

What do you think about this new feature? Let me know in comments.

Leave a Reply

Your email address will not be published.