I am struggling to personalize the Bootstrap switch due to the middle toggler limitation.
For customization purposes, I aim to increase the width and height of the switch to ensure visibility across various resolutions. My approach involves utilizing classes such as
custom-switch-sm, custom-switch-md, custom-switch-lg, custom-switch-xl
alongside the existing *-sm, *-md, *-lg, *-xl
classes.
Although my project employs SCSS, I am open to CSS solutions as well.
I attempted to modify the entire code for the Bootstrap switch, only to find that it deviated significantly from its original appearance.
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css">
<div class="custom-control custom-switch">
<input type="checkbox" class="custom-control-input" id="customSwitch1">
<label class="custom-control-label" for="customSwitch1">Default Unchcked Switch</label>
</div>
<div class="custom-control custom-switch">
<input type="checkbox" class="custom-control-input" id="customSwitch2" checked>
<label class="custom-control-label" for="customSwitch2">Default Checked Switch</label>
</div>