pretty checkbox code example

Example 1: pretty checkbox

<!-- add class p-switch -->
    <div class="pretty p-switch">
        <input type="checkbox" />
        <div class="state">
            <label>Outline</label>
        </div>
    </div>

    <!-- add class p-switch -->
    <div class="pretty p-switch p-fill">
        <input type="checkbox" />
        <div class="state">
            <label>Fill</label>
        </div>
    </div>

    <!-- add class p-switch -->
    <div class="pretty p-switch p-slim">
        <input type="checkbox" />
        <div class="state">
            <label>Slim</label>
        </div>
    </div>

Example 2: pretty checkbox

https://cdn.jsdelivr.net/npm/[email protected]/dist/pretty-checkbox.min.css

Tags:

Misc Example