From 59a4a340c77aad97e299aac47155bf4bff7a3c30 Mon Sep 17 00:00:00 2001
From: ivarlovlie <git@ivarlovlie.no>
Date: Thu, 29 Sep 2022 00:27:44 +0800
Subject: feat: Expose wrapperClass as prop for putting classes on the input
 wrapper

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

(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 5c20940..6063fe4 100644
--- a/apps/kit/src/lib/components/input.svelte
+++ b/apps/kit/src/lib/components/input.svelte
@@ -17,6 +17,7 @@
     export let icon: any = undefined;
     export let addon: string | undefined = undefined;
     export let value: string | undefined;
+    export let wrapperClass: string | undefined = undefined;
 
     $: ariaErrorDescribedBy = id + "__" + "error";
     $: attributes = {
@@ -42,7 +43,7 @@
     }
 </script>
 
-<div>
+<div class={wrapperClass}>
     {#if label && !cornerHint && !hideLabel}
         <label
             for={id}
-- 
cgit v1.3

