From 7a5ba5ea4aec0704070cfe8d63ba504a07d88cc6 Mon Sep 17 00:00:00 2001
From: ivarlovlie <git@ivarlovlie.no>
Date: Sat, 1 Oct 2022 16:44:31 +0800
Subject: feat: Functionality complete public sites

---
 apps/kit/src/lib/components/checkbox.svelte | 2 ++
 1 file changed, 2 insertions(+)

(limited to 'apps/kit/src/lib/components/checkbox.svelte')

diff --git a/apps/kit/src/lib/components/checkbox.svelte b/apps/kit/src/lib/components/checkbox.svelte
index bb22215..311d154 100644
--- a/apps/kit/src/lib/components/checkbox.svelte
+++ b/apps/kit/src/lib/components/checkbox.svelte
@@ -5,6 +5,7 @@
     export let id: string | undefined = "input__" + random_string(4);
     export let name: string | undefined = undefined;
     export let disabled: boolean | null = null;
+    export let checked: boolean;
 </script>
 
 <div class="flex items-center">
@@ -13,6 +14,7 @@
         {disabled}
         {id}
         type="checkbox"
+        bind:checked
         class="h-4 w-4 text-teal-600 focus:ring-teal-500 border-gray-300 rounded"
     />
     <label for={id} class="ml-2 block text-sm text-gray-900">{label}</label>
-- 
cgit v1.3

