Bootstrap CSS Classes

Bootstrap CSS class .form-switch

    <div class="form-check form-switch">
        <input class="form-check-input" type="checkbox" id="formSwitchChecked" checked>
        <label class="form-check-label" for="formSwitchChecked">Checked switch checkbox input</label>
    </div>
    <div class="form-check form-switch">
        <input class="form-check-input" type="checkbox" id="formSwitchDefault">
        <label class="form-check-label" for="formSwitchDefault">Default switch checkbox input</label>
    </div>
    <div class="form-check form-switch">
        <input class="form-check-input" type="checkbox" id="formSwitchCheckedDisabled" checked disabled>
        <label class="form-check-label" for="formSwitchCheckedDisabled">Disabled checked switch checkbox input</label>
    </div>
    <div class="form-check form-switch">
        <input class="form-check-input" type="checkbox" id="formSwitchDisabled" disabled>
        <label class="form-check-label" for="formSwitchDisabled">Disabled switch checkbox input</label>
    </div>

Preview

Are you tired of writing HTML by hand?

More Bootstrap CSS classes in Forms category

© 2024 Shuffle. All rights reserved.