Introducing a new HTML form control called a switch. It has the look and feel of the OS control, is backward compatible, and supports styling. It is recommended to use a switch when the end user understands the element as a setting, and a checkbox when it is something to be selected.

4m read timeFrom webkit.org
Post cover image
Table of contents
Switch versus checkboxExperimental ::thumb and ::track pseudo-elementsFeedback appreciated
1 Comment

Sort: