<script>
    import {uniqueId} from "lodash";

    export let label = "";
    let id = uniqueId();
</script>


<div class="form-check form-switch">
    <input class="form-check-input" type="checkbox" role="switch" id={id} checked>
    <label class="form-check-label" for={id}>{label}</label>
</div>

