From da0b9f39d9e882f098fb1838acfba05898b6b037 Mon Sep 17 00:00:00 2001
From: ivarlovlie <git@ivarlovlie.no>
Date: Wed, 28 Sep 2022 23:19:35 +0800
Subject: feat: Add some missing attributes

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

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

diff --git a/apps/kit/src/lib/components/input.svelte b/apps/kit/src/lib/components/input.svelte
index 0847f3e..5c20940 100644
--- a/apps/kit/src/lib/components/input.svelte
+++ b/apps/kit/src/lib/components/input.svelte
@@ -4,6 +4,8 @@
 
     export let label: string | undefined = undefined;
     export let type: string = "text";
+    export let autocomplete: string | undefined = undefined;
+    export let required: boolean | undefined = undefined;
     export let id: string | undefined = "input__" + random_string(4);
     export let name: string | undefined = undefined;
     export let placeholder: string | undefined = undefined;
@@ -21,6 +23,8 @@
         "aria-describedby": errorText ? ariaErrorDescribedBy : null,
         "aria-invalid": errorText ? "true" : null,
         disabled: disabled || null,
+        autocomplete: autocomplete || null,
+        required: required || null,
     } as any;
     $: hasBling = icon || addon || errorText;
     const defaultColorClass =
-- 
cgit v1.3

