init
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
<script>
|
||||
import { uniqueId } from "lodash";
|
||||
export let label;
|
||||
export let value;
|
||||
let id = uniqueId();
|
||||
</script>
|
||||
|
||||
<div class="form-check">
|
||||
<input
|
||||
value=""
|
||||
class="form-check-input"
|
||||
type="checkbox"
|
||||
bind:checked={value}
|
||||
id={id}
|
||||
/>
|
||||
<label class="form-check-label" for={id}>
|
||||
{label}
|
||||
</label>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user