<script>


    export let value;
    export let checked = false;
</script>

<input type="checkbox" {value} on:change
       class="switch"  {checked}/>
