Bootstrap 5 <div class="form-check form-switch" title='Toggle'> <input type="checkbox" class="form-check-input" id="switch" /> <label class="form-check-label" for='switch'>sometext</label> </div>