The Toggle Switch component turns an <input type="checkbox"> element into a toggle switch.
<input data-montage-id="toggle-switch" type="checkbox">"toggle-switch": {
"prototype": "ui/toggle-switch.reel",
"properties": {
"element": {"#": "toggle-switch"}
}
}checked- The toggle switch is turned ON.
.digit-ToggleSwitch- The track of the Toggle component.digit-ToggleSwitch-thumb- The thumb of the Toggle component
.digit-ToggleSwitch {
border-color: blue;
}
.digit-ToggleSwitch-thumb {
background-color: pink;
}- Chrome (latest)
- Firefox (latest)
- Opera (latest)
- IE 10+
- Safari 7+
