Limited Availability
Forms
<input type="checkbox" switch>
The
switch attribute, when present on an <input type="checkbox"> HTML element, renders a switch control with an on and off state instead of a checkbox control.
Baseline Status:
This feature is currently Limited (not yet Baseline). Latest engine implementation shipped on Mar 5, 2024.
Desktop Browser Engine Support
Google Chrome
—
Unsupported
Mozilla Firefox
—
Unsupported
Apple Safari
17.4
Supported
Microsoft Edge
—
Unsupported
Mobile Browser Engine Support
Chrome Android
—
Firefox Android
—
Safari iOS
17.4
Specifications and References
MDN Browser Compat Data Keys:
id: switch-control