← Back to release summary

Toggle switch control element

Category
Web Components
Type
New or changed feature
Status
No longer pursuing (Chrome No longer pursuing)
Intent stage
Start prototyping

WPT details: No tests yet. We can test all behavior of this feature if we have testdriver.send_keys().

Summary

Introduces a new form control element representing a toggle switch.

Motivation

Many UI frameworks have toggle switch controls to represent off/on states and ask a user to change the state. The HTML standard has a checkbox, which is functionally similar to toggle switch control. However they have different semantics, and should have different accessibility roles.

Standards & signals

Ecosystem

Docs: https://github.com/tkent-google/std-switch/blob/master/README.md

Samples: https://tkent-google.github.io/std-switch/demo.html

Explainers: https://github.com/tkent-google/std-switch/blob/master/README.md

View on chromestatus.com