Problem Statement
How do you render a checkbox as a toggle switch?
Explanation
Add the class .form-switch to a .form-check wrapper. Keep the input as a checkbox. Bootstrap will automatically style it to look like a toggle switch.
Code Solution
SolutionRead Only
<div class='form-check form-switch'> <input class='form-check-input' type='checkbox' id='notify'> <label class='form-check-label' for='notify'>Notifications</label> </div>
