y200subcontrols 0.0.341 → 0.0.342
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -6,7 +6,7 @@ export let theme = "teal";
|
|
|
6
6
|
</script>
|
|
7
7
|
|
|
8
8
|
<label class="flex cursor-pointer">
|
|
9
|
-
<input type="checkbox" bind:checked class="hidden peer" {id} {name} />
|
|
9
|
+
<input type="checkbox" bind:checked class="hidden peer" {id} {name} on:change />
|
|
10
10
|
<div
|
|
11
11
|
class=" rounded-full h-5 w-10 flex my-auto bg-slate-300
|
|
12
12
|
{theme==='teal' ? 'peer-checked:bg-teal-600' : ''}
|